home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / PInterfaces / OCEAuthDir.p < prev    next >
Text File  |  1996-05-01  |  172KB  |  4,607 lines

  1. {
  2.      File:        OCEAuthDir.p
  3.  
  4.      Contains:    Apple Open Collaboration Environment Authentication Interfaces.
  5.  
  6.      Version:    Technology:    AOCE Toolbox 1.02
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT OCEAuthDir;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __OCEAUTHDIR__}
  28. {$SETC __OCEAUTHDIR__ := 1}
  29.  
  30. {$I+}
  31. {$SETC OCEAuthDirIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __APPLETALK__}
  35. {$I AppleTalk.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __FILES__}
  38. {$I Files.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __OSUTILS__}
  41. {$I OSUtils.p}
  42. {$ENDC}
  43. {$IFC UNDEFINED __TYPES__}
  44. {$I Types.p}
  45. {$ENDC}
  46. {$IFC UNDEFINED __OCE__}
  47. {$I OCE.p}
  48. {$ENDC}
  49.  
  50. {$PUSH}
  51. {$ALIGN MAC68K}
  52. {$LibExport+}
  53.  
  54. {$IFC FOR_SYSTEM7_ONLY }
  55. { *************************************************************************** }
  56.  
  57. CONST
  58.     kRC4KeySizeInBytes            = 8;                            {  size of an RC4 key  }
  59.     kRefNumUnknown                = 0;
  60.  
  61.     kEnumDistinguishedNameBit    = 0;
  62.     kEnumAliasBit                = 1;
  63.     kEnumPseudonymBit            = 2;
  64.     kEnumDNodeBit                = 3;
  65.     kEnumInvisibleBit            = 4;
  66.  
  67. {  Values of DirEnumChoices  }
  68.     kEnumDistinguishedNameMask    = $00000001;
  69.     kEnumAliasMask                = $00000002;
  70.     kEnumPseudonymMask            = $00000004;
  71.     kEnumDNodeMask                = $00000008;
  72.     kEnumInvisibleMask            = $00000010;
  73.     kEnumAllMask                = $0000001F;
  74.  
  75.  
  76. TYPE
  77.     DirEnumChoices                        = LONGINT;
  78. {  Values of DirSortOption  }
  79.  
  80. CONST
  81.     kSortByName                    = 0;
  82.     kSortByType                    = 1;
  83.  
  84. {  Values of DirSortDirection  }
  85.     kSortForwards                = 0;
  86.     kSortBackwards                = 1;
  87.  
  88. {  Values of DirMatchWith  }
  89.     kMatchAll                    = 0;
  90.     kExactMatch                    = 1;
  91.     kBeginsWith                    = 2;
  92.     kEndingWith                    = 3;
  93.     kContaining                    = 4;
  94.  
  95.  
  96. TYPE
  97.     DirMatchWith                        = SInt8;
  98.  
  99. CONST
  100.     kCurrentOCESortVersion        = 1;
  101.  
  102. {
  103.   Access controls are implemented on three levels:
  104.  *      DNode, Record, and Attribute Type levels
  105.  *  Some access control bits apply to the container itself, and some apply to its contents.
  106.  *
  107.  *  The Catalog Toolbox supports six functions.  These calls are:
  108.  *  DSGetDNodeAccessControl : to get Access Controls at the DNode level
  109.  *    DSGetRecordAccessControl  : to get Access Controls at the record level
  110.  *  DSGetAttributeAccessControl : to get Access Privileges at the attribute type level
  111.  * 
  112.  *  The GetXXXAccessControl calls will return access control masks for various categories
  113.  *  of users.  Please refer to the access control document for a description of the
  114.  *  categories of users.  In general these are:
  115.  *      ThisRecordOwner         - means the identity of the record itself
  116.  *      Friends                  - means any one of the assigned friends for the record
  117.  *      AuthenticatedInDNode     - means any valid user that is an authenticated entity
  118.  *          in the DNode in which this record is located
  119.  *      AuthenticatedInDirectory - means any valid authenticated catalog user
  120.  *      Guest                      - means an unauthenticated user.
  121.  *  Bit masks for various permitted access controls are defined below.
  122.  *
  123.  *  GetXXXAccessControl calls will return access control masks for various categories of
  124.  *  users for this record. In addition they also return the level of access controls
  125.  *  that the user (who is making the GetXXXAccessControl call) has for the DNode,
  126.  *  record, or attribute type.
  127.  *
  128.  *  For records, the access control granted will be minimum of the DNode access
  129.  *  control and record access control masks.  For example, to add an attribute type to a
  130.  *  record, a user must have access control kCreateAttributeTypes at the record and
  131.  *  DNode levels.  Similarly, at the attribute type level, access controls will be the
  132.  *  minimum of the DNode, record, and attribute type access controls.
  133.  *
  134.  *  
  135. }
  136. {  access privileges bit numbers  }
  137.     kSeeBit                        = 0;
  138.     kAddBit                        = 1;
  139.     kDeleteBit                    = 2;
  140.     kChangeBit                    = 3;
  141.     kRenameBit                    = 4;
  142.     kChangePrivsBit                = 5;
  143.     kSeeFoldersBit                = 6;
  144.  
  145. {  Values of AccessMask  }
  146.     kSeeMask                    = $00000001;
  147.     kAddMask                    = $00000002;
  148.     kDeleteMask                    = $00000004;
  149.     kChangeMask                    = $00000008;
  150.     kRenameMask                    = $00000010;
  151.     kChangePrivsMask            = $00000020;
  152.     kSeeFoldersMask                = $00000040;
  153.  
  154.     kAllPrivs                    = $0000007F;
  155.     kNoPrivs                    = 0;
  156.  
  157. {
  158.  
  159. kSupportsDNodeNumberBit:
  160. If this bit is set, a DNode can be referenced using DNodeNumbers. 
  161. RecordLocationInfo can be specified using DNodeNumber and PathName component can be nil. 
  162. If this bit is not set, a DNode can be referenced only by PathName to the DNode. In the 
  163. later case DNodeNumber component inside record location info must be set to zero.
  164.  
  165. kSupportsRecordCreationIDBit:
  166. If this bit is set, a record can be referenced by specifying CreationID 
  167. in most catalog manager calls. If this bit is not set recordName and recordType are 
  168. required in the recordID specification for all catalog manager calls.
  169.  
  170. kSupportsAttributeCreationIDBit:
  171. If this bit is set, an attribute value can be obtained by specifying it's 
  172. CreationID in Lookup call staring point and also can be used in operations 
  173. like DeleteAttributeValue and ChangeAttributeValue an Attribute can be 
  174. specified by AttributeType and CreationID.
  175.  
  176. *************************************************************************
  177. Implicit assumption with creationID's and dNodeNumbers are, when supported
  178. they are persistent and will preserved across boots and life of the system.
  179. *************************************************************************
  180.  
  181. Following three bits are for determining the sort order in enumeration.
  182. kSupportsMatchAllBit:
  183. If this bit is set, enumeration of all the records is supported
  184.  
  185. kSupportsBeginsWithBit:
  186. If this bit is set, enumeration of records matching prefix (e.g. Begin with abc)
  187. is supported
  188.  
  189. kSupportsExactMatchBit:
  190. If this bit is set, existence of a record matching exact matchNameString and recordType
  191. is supported.
  192.  
  193. kSupportsEndsWithBit:
  194. If this bit is set, enumeration of records matching suffix (e.g. end with abc)
  195. is supported.
  196.  
  197. kSupportsContainsBit:
  198. If this bit is set, enumeration of records containing a matchNameString (e.g. containing abc)
  199. is supported
  200.  
  201.  
  202. Implicit assumption in all these is, a record type can be specified either as one of the above or
  203. a type list(more then one) to match exact type.
  204. The Following four bits will indicate sort ordering in enumeration.
  205.  
  206. kSupportsOrderedEnumerationBit:
  207. If this bit is set, Enumerated records or in some order possibly in name order.
  208.  
  209. kCanSupportNameOrderBit:
  210. If this is set, catalog will support sortbyName option in Enumerate.
  211.  
  212. kCanSupportTypeOrderBit:
  213. If this bit is set, catalog will support sortbyType option in enumearte.
  214.  
  215. kSupportSortBackwardsBit:
  216. If this bit is set, catalog supports backward sorting.
  217.  
  218. kSupportIndexRatioBit:
  219. If this bit is set, it indicates that enumeration will return approximate position
  220. of a record (percentile) among all records.
  221.  
  222. kSupportsEnumerationContinueBit:
  223. If this bit is set, catalog supports enumeration continue.
  224.  
  225. kSupportsLookupContinueBit:
  226. If this bit is set, catalog supports lookup continue.
  227.  
  228. kSupportsEnumerateAttributeTypeContinueBit:
  229. If this bit is set, catalog supports EnumerateAttributeType continue.
  230.  
  231. kSupportsEnumeratePseudonymContinueBit:
  232. If this bit is set, catalog supports EnumeratePseudonym continue.
  233.  
  234. kSupportsAliasesBit:
  235. If this bit is set, catalog supports create/delte/enumerate 
  236. of Alias Records.
  237.  
  238. kSupportPseudonymBit: 
  239. If this bit is set, catalog supports create/delte/enumerate of 
  240. pseudonyms for a record.
  241.  
  242. kSupportsPartialPathNameBit:
  243. If this bit is set, catalog nodes can be specified using DNodeNumber of a 
  244. intermediate DNode and a partial name starting from that DNode to the intended 
  245. DNode.
  246.  
  247. kSupportsAuthenticationBit:
  248. If this bit is set, catalog supports authentication manager calls.
  249.  
  250. kSupportsProxiesBit:
  251. If this bit is set, catalog supports proxy related calls in authentication manager. 
  252.  
  253. kSupportsFindRecordBit:
  254. If this bit is set, catalog supports find record call.
  255.  
  256. Bits and corresponding masks are as defined below.
  257. }
  258.     kSupportsDNodeNumberBit        = 0;
  259.     kSupportsRecordCreationIDBit = 1;
  260.     kSupportsAttributeCreationIDBit = 2;
  261.     kSupportsMatchAllBit        = 3;
  262.     kSupportsBeginsWithBit        = 4;
  263.     kSupportsExactMatchBit        = 5;
  264.     kSupportsEndsWithBit        = 6;
  265.     kSupportsContainsBit        = 7;
  266.     kSupportsOrderedEnumerationBit = 8;
  267.     kCanSupportNameOrderBit        = 9;
  268.     kCanSupportTypeOrderBit        = 10;
  269.     kSupportSortBackwardsBit    = 11;
  270.     kSupportIndexRatioBit        = 12;
  271.     kSupportsEnumerationContinueBit = 13;
  272.     kSupportsLookupContinueBit    = 14;
  273.     kSupportsEnumerateAttributeTypeContinueBit = 15;
  274.     kSupportsEnumeratePseudonymContinueBit = 16;
  275.     kSupportsAliasesBit            = 17;
  276.     kSupportsPseudonymsBit        = 18;
  277.     kSupportsPartialPathNamesBit = 19;
  278.     kSupportsAuthenticationBit    = 20;
  279.     kSupportsProxiesBit            = 21;
  280.     kSupportsFindRecordBit        = 22;
  281.  
  282. {  values of DirGestalt  }
  283.     kSupportsDNodeNumberMask    = $00000001;
  284.     kSupportsRecordCreationIDMask = $00000002;
  285.     kSupportsAttributeCreationIDMask = $00000004;
  286.     kSupportsMatchAllMask        = $00000008;
  287.     kSupportsBeginsWithMask        = $00000010;
  288.     kSupportsExactMatchMask        = $00000020;
  289.     kSupportsEndsWithMask        = $00000040;
  290.     kSupportsContainsMask        = $00000080;
  291.     kSupportsOrderedEnumerationMask = $00000100;
  292.     kCanSupportNameOrderMask    = $00000200;
  293.     kCanSupportTypeOrderMask    = $00000400;
  294.     kSupportSortBackwardsMask    = $00000800;
  295.     kSupportIndexRatioMask        = $00001000;
  296.     kSupportsEnumerationContinueMask = $00002000;
  297.     kSupportsLookupContinueMask    = $00004000;
  298.     kSupportsEnumerateAttributeTypeContinueMask = $00008000;
  299.     kSupportsEnumeratePseudonymContinueMask = $00010000;
  300.     kSupportsAliasesMask        = $00020000;
  301.     kSupportsPseudonymsMask        = $00040000;
  302.     kSupportsPartialPathNamesMask = $00080000;
  303.     kSupportsAuthenticationMask    = $00100000;
  304.     kSupportsProxiesMask        = $00200000;
  305.     kSupportsFindRecordMask        = $00400000;
  306.  
  307. {  Values of AuthLocalIdentityOp  }
  308.     kAuthLockLocalIdentityOp    = 1;
  309.     kAuthUnlockLocalIdentityOp    = 2;
  310.     kAuthLocalIdentityNameChangeOp = 3;
  311.  
  312. {  Values of AuthLocalIdentityLockAction  }
  313.     kAuthLockPending            = 1;
  314.     kAuthLockWillBeDone            = 2;
  315.  
  316. {  Values of AuthNotifications  }
  317.     kNotifyLockBit                = 0;
  318.     kNotifyUnlockBit            = 1;
  319.     kNotifyNameChangeBit        = 2;
  320.  
  321.     kNotifyLockMask                = $00000001;
  322.     kNotifyUnlockMask            = $00000002;
  323.     kNotifyNameChangeMask        = $00000004;
  324.  
  325.     kPersonalDirectoryFileCreator = 'kl03';
  326.     kPersonalDirectoryFileType    = 'pabt';
  327.     kBusinessCardFileType        = 'bust';
  328.     kDirectoryFileType            = 'dirt';
  329.     kDNodeFileType                = 'dnod';
  330.     kDirsRootFileType            = 'drtt';
  331.     kRecordFileType                = 'rcrd';
  332.  
  333.  
  334. TYPE
  335.     DirSortOption                        = INTEGER;
  336.     DirSortDirection                    = INTEGER;
  337.     AccessMask                            = LONGINT;
  338.     DirGestalt                            = LONGINT;
  339.     AuthLocalIdentityOp                    = LONGINT;
  340.     AuthLocalIdentityLockAction            = LONGINT;
  341.     AuthNotifications                    = LONGINT;
  342.     DNodeIDPtr = ^DNodeID;
  343.     DNodeID = RECORD
  344.         dNodeNumber:            DNodeNum;                                {  dNodenumber   }
  345.         reserved1:                LONGINT;
  346.         name:                    RStringPtr;
  347.         reserved2:                LONGINT;
  348.     END;
  349.  
  350.     DirEnumSpecPtr = ^DirEnumSpec;
  351.     DirEnumSpec = RECORD
  352.         enumFlag:                DirEnumChoices;
  353.         indexRatio:                INTEGER;                                {  Approx Record Position between 1 and 100 If supported, 0 If not supported  }
  354.         CASE INTEGER OF
  355.         0: (
  356.             recordIdentifier:    LocalRecordID;
  357.             );
  358.         1: (
  359.             dNodeIdentifier:    DNodeID;
  360.             );
  361.     END;
  362.  
  363.     DirMetaInfoPtr = ^DirMetaInfo;
  364.     DirMetaInfo = RECORD
  365.         info:                    ARRAY [0..3] OF LONGINT;
  366.     END;
  367.  
  368.     SLRVPtr = ^SLRV;
  369.     SLRV = RECORD
  370.         script:                    ScriptCode;                                {    Script code in which entries are sorted  }
  371.         language:                INTEGER;                                {    Language code in which entries are sorted  }
  372.         regionCode:                INTEGER;                                {    Region code in which entries are sorted  }
  373.         version:                INTEGER;                                {   version of oce sorting software  }
  374.     END;
  375.  
  376. {  Catalog types and operations  }
  377. {  unique identifier for an identity  }
  378.     AuthIdentity                        = LONGINT;
  379. {  Umbrella LocalIdentity  }
  380.     LocalIdentity                        = AuthIdentity;
  381. {  A DES key is 8 bytes of data  }
  382.     DESKeyPtr = ^DESKey;
  383.     DESKey = RECORD
  384.         a:                        LONGINT;
  385.         b:                        LONGINT;
  386.     END;
  387.  
  388.     RC4Key                                = ARRAY [0..7] OF SignedByte;
  389.     AuthKeyType                            = LONGINT;
  390. {  key type followed by its data  }
  391.     AuthKeyPtr = ^AuthKey;
  392.     AuthKey = RECORD
  393.         keyType:                AuthKeyType;
  394.         CASE INTEGER OF
  395.         0: (
  396.             des:                DESKey;
  397.             );
  398.         1: (
  399.             rc4:                RC4Key;
  400.             );
  401.     END;
  402.  
  403.     AuthParamBlockPtr = ^AuthParamBlock;
  404. {  Fix parameter passing convention (#1274062) ggs, 8-7-95  }
  405.     AuthIOCompletionProcPtr = Register68kProcPtr;  { PROCEDURE AuthIOCompletion(paramBlock: AuthParamBlockPtr); }
  406.  
  407.     AuthIOCompletionUPP = UniversalProcPtr;
  408. {
  409. ****************************************************************************
  410.  
  411.  
  412.         Authentication Manager operations 
  413.  
  414. ****************************************************************************
  415. }
  416. {
  417. kAuthResolveCreationID:
  418. userRecord will contain the user information whose creationID has to be
  419. returned. A client must make this call when he does not know the creaitionID.
  420. The creationID must be set to nil before making the call. The server will attempt
  421. to match the recordid's in the data base which match the user name and
  422. type in the record.  Depending on number of matchings, following
  423. results will be returned.
  424. Exactly One Match : CreationID in RecordID and also in buffer (if buffer is given)
  425. totalMatches = actualMatches = 1.
  426. > 1 Match:
  427.     Buffer is Large Enough:
  428.     totalMatches = actualMatches
  429.     Buffer will contain all the CIDs, kOCEAmbiguousMatches error.
  430. > 1 Match:
  431.     Buffer is not Large Enough:
  432.     totalMatches > actualMatches
  433.     Buffer will contain all the CIDs (equal to actualMatches), daMoreDataError error.
  434. 0 Matches:
  435.  kOCENoSuchRecord error
  436. }
  437.     AuthResolveCreationIDPBPtr = ^AuthResolveCreationIDPB;
  438.     AuthResolveCreationIDPB = RECORD
  439.         qLink:                    Ptr;
  440.         reserved1:                LONGINT;
  441.         reserved2:                LONGINT;
  442.         ioCompletion:            AuthIOCompletionUPP;
  443.         ioResult:                OSErr;
  444.         saveA5:                    LONGINT;
  445.         reqCode:                INTEGER;
  446.         reserved:                ARRAY [0..1] OF LONGINT;
  447.         serverHint:                AddrBlock;
  448.         dsRefNum:                INTEGER;
  449.         callID:                    LONGINT;
  450.         identity:                AuthIdentity;
  451.         gReserved1:                LONGINT;
  452.         gReserved2:                LONGINT;
  453.         gReserved3:                LONGINT;
  454.         clientData:                LONGINT;
  455.         userRecord:                RecordIDPtr;                            {   --> OCE name(Record) of the user  }
  456.         bufferLength:            LONGINT;                                {   --> Buffer Size to hold duplicate Info  }
  457.         buffer:                    Ptr;                                    {   --> Buffer  to hold duplicate Info  }
  458.         totalMatches:            LONGINT;                                {  <--  Total Number of matching names found  }
  459.         actualMatches:            LONGINT;                                {  <--  Number of matches returned in the buffer  }
  460.     END;
  461.  
  462. {
  463. kAuthBindSpecificIdentity:
  464. userRecord will contain the user information whose identity has to be
  465. verified. userKey will contain the userKey. An Identity is returned which
  466. binds the key and the userRecord. The identity returned can be used in the 'identity'
  467. field in the header portion (AuthParamHeader) for authenticating the Catalog and
  468. Authentication manager calls.
  469. }
  470.     AuthBindSpecificIdentityPBPtr = ^AuthBindSpecificIdentityPB;
  471.     AuthBindSpecificIdentityPB = RECORD
  472.         qLink:                    Ptr;
  473.         reserved1:                LONGINT;
  474.         reserved2:                LONGINT;
  475.         ioCompletion:            AuthIOCompletionUPP;
  476.         ioResult:                OSErr;
  477.         saveA5:                    LONGINT;
  478.         reqCode:                INTEGER;
  479.         reserved:                ARRAY [0..1] OF LONGINT;
  480.         serverHint:                AddrBlock;
  481.         dsRefNum:                INTEGER;
  482.         callID:                    LONGINT;
  483.         identity:                AuthIdentity;
  484.         gReserved1:                LONGINT;
  485.         gReserved2:                LONGINT;
  486.         gReserved3:                LONGINT;
  487.         clientData:                LONGINT;
  488.         userIdentity:            AuthIdentity;                            {  <--  binding identity  }
  489.         userRecord:                RecordIDPtr;                            {   --> OCE name(Record) of the user  }
  490.         userKey:                AuthKeyPtr;                                {   --> OCE Key for the user  }
  491.     END;
  492.  
  493. {
  494. kAuthUnbindSpecificIdentity:
  495. This call will unbind the userRecord and key which were bind earlier.
  496. }
  497.     AuthUnbindSpecificIdentityPBPtr = ^AuthUnbindSpecificIdentityPB;
  498.     AuthUnbindSpecificIdentityPB = RECORD
  499.         qLink:                    Ptr;
  500.         reserved1:                LONGINT;
  501.         reserved2:                LONGINT;
  502.         ioCompletion:            AuthIOCompletionUPP;
  503.         ioResult:                OSErr;
  504.         saveA5:                    LONGINT;
  505.         reqCode:                INTEGER;
  506.         reserved:                ARRAY [0..1] OF LONGINT;
  507.         serverHint:                AddrBlock;
  508.         dsRefNum:                INTEGER;
  509.         callID:                    LONGINT;
  510.         identity:                AuthIdentity;
  511.         gReserved1:                LONGINT;
  512.         gReserved2:                LONGINT;
  513.         gReserved3:                LONGINT;
  514.         clientData:                LONGINT;
  515.         userIdentity:            AuthIdentity;                            {   --> identity to be deleted  }
  516.     END;
  517.  
  518. {
  519. kAuthGetSpecificIdentityInfo:
  520. This call will return the userRecord for the given identity. Note: key is not
  521. returned because this would compromise security.
  522. }
  523.     AuthGetSpecificIdentityInfoPBPtr = ^AuthGetSpecificIdentityInfoPB;
  524.     AuthGetSpecificIdentityInfoPB = RECORD
  525.         qLink:                    Ptr;
  526.         reserved1:                LONGINT;
  527.         reserved2:                LONGINT;
  528.         ioCompletion:            AuthIOCompletionUPP;
  529.         ioResult:                OSErr;
  530.         saveA5:                    LONGINT;
  531.         reqCode:                INTEGER;
  532.         reserved:                ARRAY [0..1] OF LONGINT;
  533.         serverHint:                AddrBlock;
  534.         dsRefNum:                INTEGER;
  535.         callID:                    LONGINT;
  536.         identity:                AuthIdentity;
  537.         gReserved1:                LONGINT;
  538.         gReserved2:                LONGINT;
  539.         gReserved3:                LONGINT;
  540.         clientData:                LONGINT;
  541.         userIdentity:            AuthIdentity;                            {   --> identity of initiator  }
  542.         userRecord:                RecordIDPtr;                            {  <--  OCE name(Record) of the user  }
  543.     END;
  544.  
  545. {
  546. kAuthAddKey:
  547. userRecord will contain the user information whose identity has to be
  548. created. userKey will point to the key to be created. password points to
  549. an RString containing the password used to generate the key.
  550. }
  551.     AuthAddKeyPBPtr = ^AuthAddKeyPB;
  552.     AuthAddKeyPB = RECORD
  553.         qLink:                    Ptr;
  554.         reserved1:                LONGINT;
  555.         reserved2:                LONGINT;
  556.         ioCompletion:            AuthIOCompletionUPP;
  557.         ioResult:                OSErr;
  558.         saveA5:                    LONGINT;
  559.         reqCode:                INTEGER;
  560.         reserved:                ARRAY [0..1] OF LONGINT;
  561.         serverHint:                AddrBlock;
  562.         dsRefNum:                INTEGER;
  563.         callID:                    LONGINT;
  564.         identity:                AuthIdentity;
  565.         gReserved1:                LONGINT;
  566.         gReserved2:                LONGINT;
  567.         gReserved3:                LONGINT;
  568.         clientData:                LONGINT;
  569.         userRecord:                RecordIDPtr;                            {   --> OCE name(Record) of the user  }
  570.         userKey:                AuthKeyPtr;                                {  <--  OCE Key for the user  }
  571.         password:                RStringPtr;                                {   --> Pointer to password string  }
  572.     END;
  573.  
  574. {
  575. kAuthChangeKey:
  576. userRecord will contain the user information whose identity has to be
  577. created. userKey will point to the key to be created. password points to
  578. an RString containing the password used to generate the key.
  579. }
  580.     AuthChangeKeyPBPtr = ^AuthChangeKeyPB;
  581.     AuthChangeKeyPB = RECORD
  582.         qLink:                    Ptr;
  583.         reserved1:                LONGINT;
  584.         reserved2:                LONGINT;
  585.         ioCompletion:            AuthIOCompletionUPP;
  586.         ioResult:                OSErr;
  587.         saveA5:                    LONGINT;
  588.         reqCode:                INTEGER;
  589.         reserved:                ARRAY [0..1] OF LONGINT;
  590.         serverHint:                AddrBlock;
  591.         dsRefNum:                INTEGER;
  592.         callID:                    LONGINT;
  593.         identity:                AuthIdentity;
  594.         gReserved1:                LONGINT;
  595.         gReserved2:                LONGINT;
  596.         gReserved3:                LONGINT;
  597.         clientData:                LONGINT;
  598.         userRecord:                RecordIDPtr;                            {   --> OCE name(Record) of the user  }
  599.         userKey:                AuthKeyPtr;                                {  <--  New OCE Key for the user  }
  600.         password:                RStringPtr;                                {   -->Pointer to the new password string  }
  601.     END;
  602.  
  603. {
  604. AuthDeleteKey:
  605. userRecord will contain the user information whose Key has to be deleted.
  606. }
  607.     AuthDeleteKeyPBPtr = ^AuthDeleteKeyPB;
  608.     AuthDeleteKeyPB = RECORD
  609.         qLink:                    Ptr;
  610.         reserved1:                LONGINT;
  611.         reserved2:                LONGINT;
  612.         ioCompletion:            AuthIOCompletionUPP;
  613.         ioResult:                OSErr;
  614.         saveA5:                    LONGINT;
  615.         reqCode:                INTEGER;
  616.         reserved:                ARRAY [0..1] OF LONGINT;
  617.         serverHint:                AddrBlock;
  618.         dsRefNum:                INTEGER;
  619.         callID:                    LONGINT;
  620.         identity:                AuthIdentity;
  621.         gReserved1:                LONGINT;
  622.         gReserved2:                LONGINT;
  623.         gReserved3:                LONGINT;
  624.         clientData:                LONGINT;
  625.         userRecord:                RecordIDPtr;                            {   --> OCE name(Record) of the user  }
  626.     END;
  627.  
  628. {  AuthPasswordToKey: Converts an RString into a key.  }
  629.     AuthPasswordToKeyPBPtr = ^AuthPasswordToKeyPB;
  630.     AuthPasswordToKeyPB = RECORD
  631.         qLink:                    Ptr;
  632.         reserved1:                LONGINT;
  633.         reserved2:                LONGINT;
  634.         ioCompletion:            AuthIOCompletionUPP;
  635.         ioResult:                OSErr;
  636.         saveA5:                    LONGINT;
  637.         reqCode:                INTEGER;
  638.         reserved:                ARRAY [0..1] OF LONGINT;
  639.         serverHint:                AddrBlock;
  640.         dsRefNum:                INTEGER;
  641.         callID:                    LONGINT;
  642.         identity:                AuthIdentity;
  643.         gReserved1:                LONGINT;
  644.         gReserved2:                LONGINT;
  645.         gReserved3:                LONGINT;
  646.         clientData:                LONGINT;
  647.         userRecord:                RecordIDPtr;                            {   --> OCE name(Record) of the user  }
  648.         key:                    AuthKeyPtr;                                {  <--   }
  649.         password:                RStringPtr;                                {   -->Pointer to the new password string  }
  650.     END;
  651.  
  652. {
  653. kAuthGetCredentials:
  654. userRecord will contain the user information whose identity has to be
  655. kMailDeletedMask. keyType (e.g. asDESKey) will indicate what type of key has to
  656. be deleted.
  657. }
  658.     AuthGetCredentialsPBPtr = ^AuthGetCredentialsPB;
  659.     AuthGetCredentialsPB = RECORD
  660.         qLink:                    Ptr;
  661.         reserved1:                LONGINT;
  662.         reserved2:                LONGINT;
  663.         ioCompletion:            AuthIOCompletionUPP;
  664.         ioResult:                OSErr;
  665.         saveA5:                    LONGINT;
  666.         reqCode:                INTEGER;
  667.         reserved:                ARRAY [0..1] OF LONGINT;
  668.         serverHint:                AddrBlock;
  669.         dsRefNum:                INTEGER;
  670.         callID:                    LONGINT;
  671.         identity:                AuthIdentity;
  672.         gReserved1:                LONGINT;
  673.         gReserved2:                LONGINT;
  674.         gReserved3:                LONGINT;
  675.         clientData:                LONGINT;
  676.         userIdentity:            AuthIdentity;                            {   --> identity of initiator  }
  677.         recipient:                RecordIDPtr;                            {   --> OCE name of recipient  }
  678.         sessionKey:                AuthKeyPtr;                                {  <--  session key  }
  679.         expiry:                    UTCTime;                                {  <--> desired/actual expiry  }
  680.         credentialsLength:        LONGINT;                                {  <--> max/actual credentials size  }
  681.         credentials:            Ptr;                                    {  <--  buffer where credentials are returned  }
  682.     END;
  683.  
  684. {
  685. AuthDecryptCredentialsPB:
  686. Changes:
  687. userKey is changed userIdentity.
  688. userRecord is changed to initiatorRecord. User must supply buffer
  689. to hold initiatorRecord.
  690. agentList has changed to agent. There wil be no call back.
  691. User must supply buffer to hold agent Record.
  692. An additional boolean parameter 'hasAgent' is included.
  693. Toolbox will set this if an 'Agent' record is found in the
  694. credentials. If RecordIDPtr is 'nil', no agent record will
  695. be copied. However user can examine 'hasAgent', If true user
  696. can reissue this call with apprpriate buffer for getting a recordID.
  697. agent has changed to intermediary.  User must supply buffer to hold 
  698. intermediary Record.  The toolbox will set 'hasIntermediary' if an
  699. 'intermediary' record is found in the credentials. 
  700. }
  701.     AuthDecryptCredentialsPBPtr = ^AuthDecryptCredentialsPB;
  702.     AuthDecryptCredentialsPB = RECORD
  703.         qLink:                    Ptr;
  704.         reserved1:                LONGINT;
  705.         reserved2:                LONGINT;
  706.         ioCompletion:            AuthIOCompletionUPP;
  707.         ioResult:                OSErr;
  708.         saveA5:                    LONGINT;
  709.         reqCode:                INTEGER;
  710.         reserved:                ARRAY [0..1] OF LONGINT;
  711.         serverHint:                AddrBlock;
  712.         dsRefNum:                INTEGER;
  713.         callID:                    LONGINT;
  714.         identity:                AuthIdentity;
  715.         gReserved1:                LONGINT;
  716.         gReserved2:                LONGINT;
  717.         gReserved3:                LONGINT;
  718.         clientData:                LONGINT;
  719.         userIdentity:            AuthIdentity;                            {   --> user's Identity  }
  720.         initiatorRecord:        RecordIDPtr;                            {  <--  OCE name of the initiator  }
  721.         sessionKey:                AuthKeyPtr;                                {  <--  session key  }
  722.         expiry:                    UTCTime;                                {  <--  credentials expiry time  }
  723.         credentialsLength:        LONGINT;                                {   --> actual credentials size  }
  724.         credentials:            Ptr;                                    {   --> credentials to be decrypted  }
  725.         issueTime:                UTCTime;                                {  <--  credentials expiry time  }
  726.         hasIntermediary:        BOOLEAN;                                {  <--  if true, An intermediary Record was found in credentials  }
  727.         filler1:                BOOLEAN;
  728.         intermediary:            RecordIDPtr;                            {  <--  recordID of the intermediary  }
  729.     END;
  730.  
  731.     AuthMakeChallengePBPtr = ^AuthMakeChallengePB;
  732.     AuthMakeChallengePB = RECORD
  733.         qLink:                    Ptr;
  734.         reserved1:                LONGINT;
  735.         reserved2:                LONGINT;
  736.         ioCompletion:            AuthIOCompletionUPP;
  737.         ioResult:                OSErr;
  738.         saveA5:                    LONGINT;
  739.         reqCode:                INTEGER;
  740.         reserved:                ARRAY [0..1] OF LONGINT;
  741.         serverHint:                AddrBlock;
  742.         dsRefNum:                INTEGER;
  743.         callID:                    LONGINT;
  744.         identity:                AuthIdentity;
  745.         gReserved1:                LONGINT;
  746.         gReserved2:                LONGINT;
  747.         gReserved3:                LONGINT;
  748.         clientData:                LONGINT;
  749.         key:                    AuthKeyPtr;                                {   --> UnEncrypted SessionKey  }
  750.         challenge:                Ptr;                                    {  <--  Encrypted Challenge  }
  751.         challengeBufferLength:    LONGINT;                                {   ->length of challenge buffer  }
  752.         challengeLength:        LONGINT;                                {   <-length of Encrypted Challenge  }
  753.     END;
  754.  
  755.     AuthMakeReplyPBPtr = ^AuthMakeReplyPB;
  756.     AuthMakeReplyPB = RECORD
  757.         qLink:                    Ptr;
  758.         reserved1:                LONGINT;
  759.         reserved2:                LONGINT;
  760.         ioCompletion:            AuthIOCompletionUPP;
  761.         ioResult:                OSErr;
  762.         saveA5:                    LONGINT;
  763.         reqCode:                INTEGER;
  764.         reserved:                ARRAY [0..1] OF LONGINT;
  765.         serverHint:                AddrBlock;
  766.         dsRefNum:                INTEGER;
  767.         callID:                    LONGINT;
  768.         identity:                AuthIdentity;
  769.         gReserved1:                LONGINT;
  770.         gReserved2:                LONGINT;
  771.         gReserved3:                LONGINT;
  772.         clientData:                LONGINT;
  773.         key:                    AuthKeyPtr;                                {   --> UnEncrypted SessionKey  }
  774.         challenge:                Ptr;                                    {   --> Encrypted Challenge  }
  775.         reply:                    Ptr;                                    {  <--  Encrypted Reply  }
  776.         replyBufferLength:        LONGINT;                                {   -->length of challenge buffer  }
  777.         challengeLength:        LONGINT;                                {   --> length of Encrypted Challenge  }
  778.         replyLength:            LONGINT;                                {  <--  length of Encrypted Reply  }
  779.     END;
  780.  
  781.     AuthVerifyReplyPBPtr = ^AuthVerifyReplyPB;
  782.     AuthVerifyReplyPB = RECORD
  783.         qLink:                    Ptr;
  784.         reserved1:                LONGINT;
  785.         reserved2:                LONGINT;
  786.         ioCompletion:            AuthIOCompletionUPP;
  787.         ioResult:                OSErr;
  788.         saveA5:                    LONGINT;
  789.         reqCode:                INTEGER;
  790.         reserved:                ARRAY [0..1] OF LONGINT;
  791.         serverHint:                AddrBlock;
  792.         dsRefNum:                INTEGER;
  793.         callID:                    LONGINT;
  794.         identity:                AuthIdentity;
  795.         gReserved1:                LONGINT;
  796.         gReserved2:                LONGINT;
  797.         gReserved3:                LONGINT;
  798.         clientData:                LONGINT;
  799.         key:                    AuthKeyPtr;                                {   --> UnEncrypted SessionKey  }
  800.         challenge:                Ptr;                                    {   --> Encrypted Challenge  }
  801.         reply:                    Ptr;                                    {   --> Encrypted Reply  }
  802.         challengeLength:        LONGINT;                                {   --> length of Encrypted Challenge  }
  803.         replyLength:            LONGINT;                                {   --> length of Encrypted Reply  }
  804.     END;
  805.  
  806. {
  807. kAuthGetUTCTime:
  808. RLI will contain a valid RLI for a cluster server.
  809. UTC(GMT) time from one of the cluster server will be returned.
  810. An 'offSet' from UTC(GMT) to Mac Local Time will also be returned.
  811. If RLI is nil Map DA is used to determine UTC(GMT).
  812. Mac Local Time = theUTCTime + theUTCOffset.
  813. }
  814.     AuthGetUTCTimePBPtr = ^AuthGetUTCTimePB;
  815.     AuthGetUTCTimePB = RECORD
  816.         qLink:                    Ptr;
  817.         reserved1:                LONGINT;
  818.         reserved2:                LONGINT;
  819.         ioCompletion:            AuthIOCompletionUPP;
  820.         ioResult:                OSErr;
  821.         saveA5:                    LONGINT;
  822.         reqCode:                INTEGER;
  823.         reserved:                ARRAY [0..1] OF LONGINT;
  824.         serverHint:                AddrBlock;
  825.         dsRefNum:                INTEGER;
  826.         callID:                    LONGINT;
  827.         identity:                AuthIdentity;
  828.         gReserved1:                LONGINT;
  829.         gReserved2:                LONGINT;
  830.         gReserved3:                LONGINT;
  831.         clientData:                LONGINT;
  832.         pRLI:                    PackedRLIPtr;                            {   --> packed RLI of the Node, whose server's UTC is requested  }
  833.         theUTCTime:                UTCTime;                                {  <--  current UTC(GMT) Time utc seconds since 1/1/1904  }
  834.         theUTCOffset:            UTCOffset;                                {  <--  offset from UTC(GMT) seconds EAST of Greenwich  }
  835.     END;
  836.  
  837. {
  838. kAuthMakeProxy:
  839. A user represented bu the 'userIdentity' can make a proxy using this call.
  840. 'recipient' is the RecordID of the recipient whom user is requesting proxy.
  841. 'intermediary' is the RecordID of the intermediary holding proxy for the user.
  842. 'firstValid' is time at which proxy becomes valid.
  843. 'expiry' is the time at which proxy must expire.
  844. 'proxyLength' will have the length of the buffer pointed by 'proxy' as input.
  845. When the call completes, it will hold the actual length of proxy. If the
  846. call completes 'kOCEMoreData' error, client can reissue the call with the
  847. buffer size as 'proxyLength' returned.
  848. expiry is a suggestion, and may be adjusted to be earlier by the ADAP/OCE server.
  849. The 'proxy' obtained like this might be used by the 'intermediary' to obtain credentials
  850. for the server using TradeProxyForCredentials call.
  851. authDataLength and authData are intended for possible future work, but are
  852. ignored for now.
  853. }
  854.     AuthMakeProxyPBPtr = ^AuthMakeProxyPB;
  855.     AuthMakeProxyPB = RECORD
  856.         qLink:                    Ptr;
  857.         reserved1:                LONGINT;
  858.         reserved2:                LONGINT;
  859.         ioCompletion:            AuthIOCompletionUPP;
  860.         ioResult:                OSErr;
  861.         saveA5:                    LONGINT;
  862.         reqCode:                INTEGER;
  863.         reserved:                ARRAY [0..1] OF LONGINT;
  864.         serverHint:                AddrBlock;
  865.         dsRefNum:                INTEGER;
  866.         callID:                    LONGINT;
  867.         identity:                AuthIdentity;
  868.         gReserved1:                LONGINT;
  869.         gReserved2:                LONGINT;
  870.         gReserved3:                LONGINT;
  871.         clientData:                LONGINT;
  872.         userIdentity:            AuthIdentity;                            {   --> identity of principal  }
  873.         recipient:                RecordIDPtr;                            {   --> OCE name of recipient  }
  874.         firstValid:                UTCTime;                                {   --> time at which proxy becomes valid  }
  875.         expiry:                    UTCTime;                                {   --> time at which proxy expires  }
  876.         authDataLength:            LONGINT;                                {   --> size of authorization data  }
  877.         authData:                Ptr;                                    {   --> pointer to authorization data  }
  878.         proxyLength:            LONGINT;                                {  <--> max/actual proxy size  }
  879.         proxy:                    Ptr;                                    {  <--> buffer where proxy is returned  }
  880.         intermediary:            RecordIDPtr;                            {   --> RecordID of intermediary  }
  881.     END;
  882.  
  883. {
  884. kAuthTradeProxyForCredentials:
  885. Using this call, intermediary holding a 'proxy' for a recipient may obtain credentials
  886. for that recipient. 'userIdentity' is the identity for the 'intermediary'.
  887. 'recipient' is the RecordID for whom credetials are requested.
  888. 'principal' is the RecordID of the user who created the proxy.
  889. 'proxyLength' is the length of data pointed by 'proxy.
  890. If the call is succesfull, credentials will be returned in the
  891. buffer pointed by 'credentials'. 'expiry' is the desired expiry time at input.
  892. When call succeds this will have expiry time of credentials.
  893. This is very similar to GetCredentials except that we (of course) need the proxy,
  894. but we also need the name of the principal who created the proxy.
  895. }
  896.     AuthTradeProxyForCredentialsPBPtr = ^AuthTradeProxyForCredentialsPB;
  897.     AuthTradeProxyForCredentialsPB = RECORD
  898.         qLink:                    Ptr;
  899.         reserved1:                LONGINT;
  900.         reserved2:                LONGINT;
  901.         ioCompletion:            AuthIOCompletionUPP;
  902.         ioResult:                OSErr;
  903.         saveA5:                    LONGINT;
  904.         reqCode:                INTEGER;
  905.         reserved:                ARRAY [0..1] OF LONGINT;
  906.         serverHint:                AddrBlock;
  907.         dsRefNum:                INTEGER;
  908.         callID:                    LONGINT;
  909.         identity:                AuthIdentity;
  910.         gReserved1:                LONGINT;
  911.         gReserved2:                LONGINT;
  912.         gReserved3:                LONGINT;
  913.         clientData:                LONGINT;
  914.         userIdentity:            AuthIdentity;                            {   --> identity of intermediary  }
  915.         recipient:                RecordIDPtr;                            {   --> OCE name of recipient  }
  916.         sessionKey:                AuthKeyPtr;                                {  <--  session key  }
  917.         expiry:                    UTCTime;                                {  <--> desired/actual expiry  }
  918.         credentialsLength:        LONGINT;                                {  <--> max/actual credentials size  }
  919.         credentials:            Ptr;                                    {  <--> buffer where credentials are returned  }
  920.         proxyLength:            LONGINT;                                {   --> actual proxy size  }
  921.         proxy:                    Ptr;                                    {   --> buffer containing proxy  }
  922.         principal:                RecordIDPtr;                            {   --> RecordID of principal  }
  923.     END;
  924.  
  925. {  API for Local Identity Interface  }
  926. {
  927. AuthGetLocalIdentityPB:
  928. A Collaborative application intended to work under the umbrella of LocalIdentity
  929. for the OCE toolbox will have to make this call to obtain LocalIdentity.
  930. If LocalIdentity has not been setup, then application will get
  931. 'kOCEOCESetupRequired.'. In this case application should put the dialog
  932. recommended by the OCE Setup document and guide the user through OCE Setup.
  933. If the OCESetup contains local identity, but user has not unlocked, it will get
  934. kOCELocalAuthenticationFail. In this case application should use SDPPromptForLocalIdentity
  935. to prompt user for the password.
  936. If a backGround application or stand alone code requires LocalIdentity, if it gets the
  937. OSErr from LocalIdentity and can not call SDPPromptForLocalIdentity, it should it self
  938. register with the toolbox using kAuthAddToLocalIdentityQueue call. It will be notified
  939. when a LocalIdentity gets created by a foreground application.
  940. }
  941.     AuthGetLocalIdentityPBPtr = ^AuthGetLocalIdentityPB;
  942.     AuthGetLocalIdentityPB = RECORD
  943.         qLink:                    Ptr;
  944.         reserved1:                LONGINT;
  945.         reserved2:                LONGINT;
  946.         ioCompletion:            AuthIOCompletionUPP;
  947.         ioResult:                OSErr;
  948.         saveA5:                    LONGINT;
  949.         reqCode:                INTEGER;
  950.         reserved:                ARRAY [0..1] OF LONGINT;
  951.         serverHint:                AddrBlock;
  952.         dsRefNum:                INTEGER;
  953.         callID:                    LONGINT;
  954.         identity:                AuthIdentity;
  955.         gReserved1:                LONGINT;
  956.         gReserved2:                LONGINT;
  957.         gReserved3:                LONGINT;
  958.         clientData:                LONGINT;
  959.         theLocalIdentity:        LocalIdentity;                            {  <--  LocalIdentity  }
  960.     END;
  961.  
  962. {
  963. kAuthUnlockLocalIdentity:
  964. The LocalIdentity can be created using this call.
  965. The userName and password correspond to the LocalIdentity setup.
  966. If the password matches, then collabIdentity will be returned.
  967. Typically SDPPromptForLocalIdentity call will make this call.
  968. All applications which are registered through kAuthAddToLocalIdentityQueue
  969. will be notified.
  970. }
  971.     AuthUnlockLocalIdentityPBPtr = ^AuthUnlockLocalIdentityPB;
  972.     AuthUnlockLocalIdentityPB = RECORD
  973.         qLink:                    Ptr;
  974.         reserved1:                LONGINT;
  975.         reserved2:                LONGINT;
  976.         ioCompletion:            AuthIOCompletionUPP;
  977.         ioResult:                OSErr;
  978.         saveA5:                    LONGINT;
  979.         reqCode:                INTEGER;
  980.         reserved:                ARRAY [0..1] OF LONGINT;
  981.         serverHint:                AddrBlock;
  982.         dsRefNum:                INTEGER;
  983.         callID:                    LONGINT;
  984.         identity:                AuthIdentity;
  985.         gReserved1:                LONGINT;
  986.         gReserved2:                LONGINT;
  987.         gReserved3:                LONGINT;
  988.         clientData:                LONGINT;
  989.         theLocalIdentity:        LocalIdentity;                            {  <--  LocalIdentity  }
  990.         userName:                RStringPtr;                                {   --> userName  }
  991.         password:                RStringPtr;                                {   -->user password  }
  992.     END;
  993.  
  994. {
  995. kAuthLockLocalIdentity:
  996. With this call existing LocalIdentity can be locked. If the ASDeleteLocalIdetity
  997. call fails with 'kOCEOperationDenied' error, name will contain the application which
  998. denied the operation. This name will be supplied by the application
  999. when it registered through kAuthAddToLocalIdentityQueue call
  1000. }
  1001.     AuthLockLocalIdentityPBPtr = ^AuthLockLocalIdentityPB;
  1002.     AuthLockLocalIdentityPB = RECORD
  1003.         qLink:                    Ptr;
  1004.         reserved1:                LONGINT;
  1005.         reserved2:                LONGINT;
  1006.         ioCompletion:            AuthIOCompletionUPP;
  1007.         ioResult:                OSErr;
  1008.         saveA5:                    LONGINT;
  1009.         reqCode:                INTEGER;
  1010.         reserved:                ARRAY [0..1] OF LONGINT;
  1011.         serverHint:                AddrBlock;
  1012.         dsRefNum:                INTEGER;
  1013.         callID:                    LONGINT;
  1014.         identity:                AuthIdentity;
  1015.         gReserved1:                LONGINT;
  1016.         gReserved2:                LONGINT;
  1017.         gReserved3:                LONGINT;
  1018.         clientData:                LONGINT;
  1019.         theLocalIdentity:        LocalIdentity;                            {   --> LocalIdentity  }
  1020.         name:                    StringPtr;                                {  <--  name of the app which denied delete  }
  1021.     END;
  1022.  
  1023.     NotificationProcPtr = ProcPtr;  { FUNCTION Notification(clientData: LONGINT; callValue: AuthLocalIdentityOp; actionValue: AuthLocalIdentityLockAction; identity: LocalIdentity): BOOLEAN; }
  1024.  
  1025.     NotificationUPP = UniversalProcPtr;
  1026.     NotificationProc                    = NotificationUPP;
  1027. {
  1028. kAuthAddToLocalIdentityQueue:
  1029. An application requiring notification of locking/unlocking of the
  1030. LocalIdentity can install itself using this call. The function provided
  1031. in 'notifyProc' will be called whenever the requested event happens.
  1032. When an AuthLockLocalIdentity call is made to the toolbox, the notificationProc
  1033. will be called with 'kAuthLockPending'. The application may refuse the lock by returning
  1034. a 'true' value. If all the registered entries return 'false' value, locking will be done
  1035. successfully. Otherwise 'kOCEOperationDenied' error is returned to the caller. The appName
  1036. (registered with the notificationProc) of the application which denied locking is also
  1037. returned to the caller making the AuthLockIdentity call.
  1038. }
  1039.     AuthAddToLocalIdentityQueuePBPtr = ^AuthAddToLocalIdentityQueuePB;
  1040.     AuthAddToLocalIdentityQueuePB = RECORD
  1041.         qLink:                    Ptr;
  1042.         reserved1:                LONGINT;
  1043.         reserved2:                LONGINT;
  1044.         ioCompletion:            AuthIOCompletionUPP;
  1045.         ioResult:                OSErr;
  1046.         saveA5:                    LONGINT;
  1047.         reqCode:                INTEGER;
  1048.         reserved:                ARRAY [0..1] OF LONGINT;
  1049.         serverHint:                AddrBlock;
  1050.         dsRefNum:                INTEGER;
  1051.         callID:                    LONGINT;
  1052.         identity:                AuthIdentity;
  1053.         gReserved1:                LONGINT;
  1054.         gReserved2:                LONGINT;
  1055.         gReserved3:                LONGINT;
  1056.         clientData:                LONGINT;
  1057.         notifyProc:                NotificationUPP;                        {   --> notification procedure  }
  1058.         notifyFlags:            AuthNotifications;                        {   --> notifyFlags  }
  1059.         appName:                StringPtr;                                {   --> name of application to be returned in Delete/Stop  }
  1060.     END;
  1061.  
  1062. { kAuthRemoveFromLocalIdentityQueue: }
  1063.     AuthRemoveFromLocalIdentityQueuePBPtr = ^AuthRemoveFromLocalIdentityQueuePB;
  1064.     AuthRemoveFromLocalIdentityQueuePB = RECORD
  1065.         qLink:                    Ptr;
  1066.         reserved1:                LONGINT;
  1067.         reserved2:                LONGINT;
  1068.         ioCompletion:            AuthIOCompletionUPP;
  1069.         ioResult:                OSErr;
  1070.         saveA5:                    LONGINT;
  1071.         reqCode:                INTEGER;
  1072.         reserved:                ARRAY [0..1] OF LONGINT;
  1073.         serverHint:                AddrBlock;
  1074.         dsRefNum:                INTEGER;
  1075.         callID:                    LONGINT;
  1076.         identity:                AuthIdentity;
  1077.         gReserved1:                LONGINT;
  1078.         gReserved2:                LONGINT;
  1079.         gReserved3:                LONGINT;
  1080.         clientData:                LONGINT;
  1081.         notifyProc:                NotificationUPP;                        {   --> notification procedure  }
  1082.     END;
  1083.  
  1084. {
  1085. kAuthSetupLocalIdentity:
  1086. The LocalIdentity can be Setup using this call.
  1087. The userName and password correspond to the LocalIdentity setup.
  1088. If a LocalIdentity Setup already exists 'kOCELocalIdentitySetupExists' error
  1089. will be returned.
  1090. }
  1091.     AuthSetupLocalIdentityPBPtr = ^AuthSetupLocalIdentityPB;
  1092.     AuthSetupLocalIdentityPB = RECORD
  1093.         qLink:                    Ptr;
  1094.         reserved1:                LONGINT;
  1095.         reserved2:                LONGINT;
  1096.         ioCompletion:            AuthIOCompletionUPP;
  1097.         ioResult:                OSErr;
  1098.         saveA5:                    LONGINT;
  1099.         reqCode:                INTEGER;
  1100.         reserved:                ARRAY [0..1] OF LONGINT;
  1101.         serverHint:                AddrBlock;
  1102.         dsRefNum:                INTEGER;
  1103.         callID:                    LONGINT;
  1104.         identity:                AuthIdentity;
  1105.         gReserved1:                LONGINT;
  1106.         gReserved2:                LONGINT;
  1107.         gReserved3:                LONGINT;
  1108.         clientData:                LONGINT;
  1109.         aReserved:                LONGINT;                                {   --   }
  1110.         userName:                RStringPtr;                                {   --> userName  }
  1111.         password:                RStringPtr;                                {   -->user password  }
  1112.     END;
  1113.  
  1114. {
  1115. kAuthChangeLocalIdentity:
  1116. An existing LocalIdentity  Setup can be changed using this call.
  1117. The userName and password correspond to the LocalIdentity setup.
  1118. If a LocalIdentity Setup does not exists 'kOCEOCESetupRequired' error
  1119. will be returned. The user can use  kAuthSetupLocalIdentity call to setit up.
  1120. If the 'password' does not correspond to the existing setup, 'kOCELocalAuthenticationFail'
  1121. OSErr will be returned. If successful, LocalID will have new name as 'userName' and
  1122. password as 'newPassword' and if any applications has installed into 
  1123. LocalIdentityQueue with kNotifyNameChangeMask set, it will be notified with 
  1124. kAuthLocalIdentityNameChangeOp action value. 
  1125.  
  1126. }
  1127.     AuthChangeLocalIdentityPBPtr = ^AuthChangeLocalIdentityPB;
  1128.     AuthChangeLocalIdentityPB = RECORD
  1129.         qLink:                    Ptr;
  1130.         reserved1:                LONGINT;
  1131.         reserved2:                LONGINT;
  1132.         ioCompletion:            AuthIOCompletionUPP;
  1133.         ioResult:                OSErr;
  1134.         saveA5:                    LONGINT;
  1135.         reqCode:                INTEGER;
  1136.         reserved:                ARRAY [0..1] OF LONGINT;
  1137.         serverHint:                AddrBlock;
  1138.         dsRefNum:                INTEGER;
  1139.         callID:                    LONGINT;
  1140.         identity:                AuthIdentity;
  1141.         gReserved1:                LONGINT;
  1142.         gReserved2:                LONGINT;
  1143.         gReserved3:                LONGINT;
  1144.         clientData:                LONGINT;
  1145.         aReserved:                LONGINT;                                {   --   }
  1146.         userName:                RStringPtr;                                {   --> userName  }
  1147.         password:                RStringPtr;                                {   --> current password  }
  1148.         newPassword:            RStringPtr;                                {   --> new password  }
  1149.     END;
  1150.  
  1151. {
  1152. kAuthRemoveLocalIdentity:
  1153. An existing LocalIdentity  Setup can be removed using this call.
  1154. The userName and password correspond to the LocalIdentity setup.
  1155. If a LocalIdentity Setup does not exists 'kOCEOCESetupRequired' error
  1156. will be returned.
  1157. If the 'password' does not correspond to the existing setup, 'kOCELocalAuthenticationFail'
  1158. OSErr will be returned. If successful, LocalIdentity will be removed from the OCE Setup.
  1159. This is a very distructive operation, user must be warned enough before actually making
  1160. this call.
  1161. }
  1162.     AuthRemoveLocalIdentityPBPtr = ^AuthRemoveLocalIdentityPB;
  1163.     AuthRemoveLocalIdentityPB = RECORD
  1164.         qLink:                    Ptr;
  1165.         reserved1:                LONGINT;
  1166.         reserved2:                LONGINT;
  1167.         ioCompletion:            AuthIOCompletionUPP;
  1168.         ioResult:                OSErr;
  1169.         saveA5:                    LONGINT;
  1170.         reqCode:                INTEGER;
  1171.         reserved:                ARRAY [0..1] OF LONGINT;
  1172.         serverHint:                AddrBlock;
  1173.         dsRefNum:                INTEGER;
  1174.         callID:                    LONGINT;
  1175.         identity:                AuthIdentity;
  1176.         gReserved1:                LONGINT;
  1177.         gReserved2:                LONGINT;
  1178.         gReserved3:                LONGINT;
  1179.         clientData:                LONGINT;
  1180.         aReserved:                LONGINT;                                {   --   }
  1181.         userName:                RStringPtr;                                {   --> userName  }
  1182.         password:                RStringPtr;                                {   --> current password  }
  1183.     END;
  1184.  
  1185. {
  1186. kOCESetupAddDirectoryInfo:
  1187. Using this call identity for a catalog can be setup under LocalIdentity umbrella.
  1188. ASCreateLocalIdentity should have been done succesfully before making this call.    
  1189. directoryRecordCID -> is the record creationID obtained when DirAddOCEDirectory or
  1190. DirAddDSAMDirectory call was made.
  1191. rid-> is the recordID in which the identity for the catalog will be established.
  1192. password-> the password associated with the rid in the catalog world.
  1193. }
  1194.     OCESetupAddDirectoryInfoPBPtr = ^OCESetupAddDirectoryInfoPB;
  1195.     OCESetupAddDirectoryInfoPB = RECORD
  1196.         qLink:                    Ptr;
  1197.         reserved1:                LONGINT;
  1198.         reserved2:                LONGINT;
  1199.         ioCompletion:            AuthIOCompletionUPP;
  1200.         ioResult:                OSErr;
  1201.         saveA5:                    LONGINT;
  1202.         reqCode:                INTEGER;
  1203.         reserved:                ARRAY [0..1] OF LONGINT;
  1204.         serverHint:                AddrBlock;
  1205.         dsRefNum:                INTEGER;
  1206.         callID:                    LONGINT;
  1207.         identity:                AuthIdentity;
  1208.         gReserved1:                LONGINT;
  1209.         gReserved2:                LONGINT;
  1210.         gReserved3:                LONGINT;
  1211.         clientData:                LONGINT;
  1212.         directoryRecordCID:        CreationID;                                {   --> CreationID for the catalog  }
  1213.         recordID:                RecordIDPtr;                            {   --> recordID for the identity  }
  1214.         password:                RStringPtr;                                {   --> password in the catalog world  }
  1215.     END;
  1216.  
  1217. {
  1218. kOCESetupChangeDirectoryInfo:
  1219. Using this call an existing identity for a catalog under LocalIdentity umbrella
  1220. can be changed.
  1221. ASCreateLocalIdentity should have been done succesfully before making this call.
  1222. directoryRecordCID -> is the record creationID obtained when DirAddOCEDirectory or
  1223. DirAddDSAMDirectory call was made.
  1224. rid-> is the recordID in which the identity for the catalog will be established.
  1225. password-> the password associated with the rid in the catalog world.
  1226. newPassword -> the new password for the catalog
  1227. }
  1228.     OCESetupChangeDirectoryInfoPBPtr = ^OCESetupChangeDirectoryInfoPB;
  1229.     OCESetupChangeDirectoryInfoPB = RECORD
  1230.         qLink:                    Ptr;
  1231.         reserved1:                LONGINT;
  1232.         reserved2:                LONGINT;
  1233.         ioCompletion:            AuthIOCompletionUPP;
  1234.         ioResult:                OSErr;
  1235.         saveA5:                    LONGINT;
  1236.         reqCode:                INTEGER;
  1237.         reserved:                ARRAY [0..1] OF LONGINT;
  1238.         serverHint:                AddrBlock;
  1239.         dsRefNum:                INTEGER;
  1240.         callID:                    LONGINT;
  1241.         identity:                AuthIdentity;
  1242.         gReserved1:                LONGINT;
  1243.         gReserved2:                LONGINT;
  1244.         gReserved3:                LONGINT;
  1245.         clientData:                LONGINT;
  1246.         directoryRecordCID:        CreationID;                                {   --> CreationID for the catalog  }
  1247.         recordID:                RecordIDPtr;                            {   --> recordID for the identity  }
  1248.         password:                RStringPtr;                                {   --> password in the catalog world  }
  1249.         newPassword:            RStringPtr;                                {   --> new password in the catalog  }
  1250.     END;
  1251.  
  1252. {
  1253. kOCESetupRemoveDirectoryInfo:
  1254. Using this call an existing identity for a catalog under LocalIdentity umbrella
  1255. can be changed.
  1256. ASCreateLocalIdentity should have been done succesfully before making this call.
  1257. directoryRecordCID -> is the record creationID obtained when DirAddOCEDirectory or
  1258. }
  1259.     OCESetupRemoveDirectoryInfoPBPtr = ^OCESetupRemoveDirectoryInfoPB;
  1260.     OCESetupRemoveDirectoryInfoPB = RECORD
  1261.         qLink:                    Ptr;
  1262.         reserved1:                LONGINT;
  1263.         reserved2:                LONGINT;
  1264.         ioCompletion:            AuthIOCompletionUPP;
  1265.         ioResult:                OSErr;
  1266.         saveA5:                    LONGINT;
  1267.         reqCode:                INTEGER;
  1268.         reserved:                ARRAY [0..1] OF LONGINT;
  1269.         serverHint:                AddrBlock;
  1270.         dsRefNum:                INTEGER;
  1271.         callID:                    LONGINT;
  1272.         identity:                AuthIdentity;
  1273.         gReserved1:                LONGINT;
  1274.         gReserved2:                LONGINT;
  1275.         gReserved3:                LONGINT;
  1276.         clientData:                LONGINT;
  1277.         directoryRecordCID:        CreationID;                                {   --> CreationID for the catalog  }
  1278.     END;
  1279.  
  1280. {
  1281. kOCESetupGetDirectoryInfo:
  1282. Using this call info on an existing identity for a particular catalog under LocalIdentity umbrella
  1283. can be obtained.
  1284. For the specified catalog 'directoryName' and 'discriminator', rid and nativeName will
  1285. returned. Caller must provide appropriate buffer to get back rid and nativeName.
  1286. 'password' will be returned  for  non-ADAP Catalogs.
  1287. }
  1288.     OCESetupGetDirectoryInfoPBPtr = ^OCESetupGetDirectoryInfoPB;
  1289.     OCESetupGetDirectoryInfoPB = RECORD
  1290.         qLink:                    Ptr;
  1291.         reserved1:                LONGINT;
  1292.         reserved2:                LONGINT;
  1293.         ioCompletion:            AuthIOCompletionUPP;
  1294.         ioResult:                OSErr;
  1295.         saveA5:                    LONGINT;
  1296.         reqCode:                INTEGER;
  1297.         reserved:                ARRAY [0..1] OF LONGINT;
  1298.         serverHint:                AddrBlock;
  1299.         dsRefNum:                INTEGER;
  1300.         callID:                    LONGINT;
  1301.         identity:                AuthIdentity;
  1302.         gReserved1:                LONGINT;
  1303.         gReserved2:                LONGINT;
  1304.         gReserved3:                LONGINT;
  1305.         clientData:                LONGINT;
  1306.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  1307.         discriminator:            DirDiscriminator;                        {   --> discriminator for the catalog  }
  1308.         recordID:                RecordIDPtr;                            {  <--  rid for the catalog identity  }
  1309.         nativeName:                RStringPtr;                                {  <--  user name in the catalog world  }
  1310.         password:                RStringPtr;                                {  <--  password in the catalog world  }
  1311.     END;
  1312.  
  1313. {
  1314. ****************************************************************************
  1315.  
  1316.  
  1317.          Catalog Manager operations
  1318.  
  1319.  
  1320. ****************************************************************************
  1321. }
  1322.     DirParamBlockPtr = ^DirParamBlock;
  1323.     DirIOCompletionProcPtr = Register68kProcPtr;  { PROCEDURE DirIOCompletion(paramBlock: DirParamBlockPtr); }
  1324.  
  1325.     DirIOCompletionUPP = UniversalProcPtr;
  1326. {  AddRecord  }
  1327.     DirAddRecordPBPtr = ^DirAddRecordPB;
  1328.     DirAddRecordPB = RECORD
  1329.         qLink:                    Ptr;
  1330.         reserved1:                LONGINT;
  1331.         reserved2:                LONGINT;
  1332.         ioCompletion:            DirIOCompletionUPP;
  1333.         ioResult:                OSErr;
  1334.         saveA5:                    LONGINT;
  1335.         reqCode:                INTEGER;
  1336.         reserved:                ARRAY [0..1] OF LONGINT;
  1337.         serverHint:                AddrBlock;
  1338.         dsRefNum:                INTEGER;
  1339.         callID:                    LONGINT;
  1340.         identity:                AuthIdentity;
  1341.         gReserved1:                LONGINT;
  1342.         gReserved2:                LONGINT;
  1343.         gReserved3:                LONGINT;
  1344.         clientData:                LONGINT;
  1345.         aRecord:                RecordIDPtr;                            {   --> CreationID returned here  }
  1346.         allowDuplicate:            BOOLEAN;                                {   -->  }
  1347.         filler1:                BOOLEAN;
  1348.     END;
  1349.  
  1350. {  DeleteRecord  }
  1351.     DirDeleteRecordPBPtr = ^DirDeleteRecordPB;
  1352.     DirDeleteRecordPB = RECORD
  1353.         qLink:                    Ptr;
  1354.         reserved1:                LONGINT;
  1355.         reserved2:                LONGINT;
  1356.         ioCompletion:            DirIOCompletionUPP;
  1357.         ioResult:                OSErr;
  1358.         saveA5:                    LONGINT;
  1359.         reqCode:                INTEGER;
  1360.         reserved:                ARRAY [0..1] OF LONGINT;
  1361.         serverHint:                AddrBlock;
  1362.         dsRefNum:                INTEGER;
  1363.         callID:                    LONGINT;
  1364.         identity:                AuthIdentity;
  1365.         gReserved1:                LONGINT;
  1366.         gReserved2:                LONGINT;
  1367.         gReserved3:                LONGINT;
  1368.         clientData:                LONGINT;
  1369.         aRecord:                RecordIDPtr;                            {   -->  }
  1370.     END;
  1371.  
  1372. {  aRecord must contain valid PackedRLI and a CreationID.  }
  1373. { ******************************************************************************** }
  1374. {
  1375. DirEnumerate:
  1376. This call can be used to enumerate both DNodes and records under a specified
  1377. DNode. A DNode is specified by the PackedRLIPtr 'aRLI'.
  1378.  
  1379. startingPoint indicates where to start the enumeration.  Initially,
  1380. it should be set to a value of nil.  After some records are enumerated,
  1381. the client can issue the call again with the same aRLI and recordName and
  1382. typeList. The last received DirEnumSpec in the startingPoint field.  The server
  1383. will continue the enumeration from that record on. if user wants to get back the
  1384. value specified in the startingRecord also, the Boolean 'includeStartingPoint'
  1385. must be set to 'true'. If this is set to 'false', records specified after the
  1386. startingPoint record will be returned.
  1387.  
  1388. sortBy indicates to the server to return the records that match in name-first
  1389. or type-first order.  sortDirection indicates to the server to search in forward
  1390. or backward sort order for RecordIDs Specified.
  1391.  
  1392. RecordIDS and Enumeration Criteria:
  1393.  
  1394. PackedRLIPtr parameter 'aRLI' will be accepted for DNode
  1395. specification.
  1396.  
  1397. One RStringPtr 'nameMatchString' is provided. User is allowed to
  1398. specify a wild card in the name. WildCard specification is specified in 
  1399. matchNameHow parameter and possible values are defined in DirMatchWith Enum.
  1400.  
  1401. 'typeCount' parameter indicate how many types are in the 'typeList'.
  1402.  
  1403. 'typeList' parmeter is a pointer to an RString array of size 'typeCount'.
  1404.  
  1405. If 'typeCount' is exactly equal to one, a wild card can be specified
  1406. for the entity type; otherwise types have to be completely specified.
  1407. WildCard specification is specified in  matchNameHow parameter
  1408.  and possible values are defined in DirMatchWith Enum.
  1409.  
  1410.  
  1411. A nil value for 'startingPoint' is allowed when sortDirection specified
  1412. is 'kSortBackwards'. This was not allowed previously.
  1413.  
  1414. 'enumFlags' parameter is a bit field. The following bits can be set:
  1415.     kEnumDistinguishedNameMask to get back records in the cluster data base.
  1416.     kEnumAliasMask to get back record aliases
  1417.     kEnumPseudonymMask to get back record pseudonyms
  1418.     kEnumDNodeMask to get back any children dNodes for the DNode specified in the
  1419.     'aRLI' parameter.
  1420.     kEnumForeignDNodeMask to get back any children dNodes which have ForeignDnodes in the
  1421.     dNode specified in the 'aRLI' parameter.
  1422.  
  1423.     kEnumAll is combination of all five values and can be used to enumerate
  1424.     everything under a specified DNode.
  1425.  
  1426.  
  1427.  
  1428. The results returned for each element will consist of a DirEnumSpec.
  1429. The DirEnumSpec contains 'enumFlag' which indicates the type of entity and a
  1430. union which will have either DNodeID or LocalRecordID depending on the value of 'enumFlag'.
  1431. The 'enumFlag'  will indicate whether the returned element is a
  1432. record(kEnumDistinguishedNameMask bit) or a alias(kEnumAliasMask bit) or a
  1433. Pseudonym(kEnumPseudonymMask) or a child DNode(kEnumDNodeMask bit).  If the 'enumFlag' value
  1434. is kEnumDnodeMask, it indicates the value returned in the union is a DNodeID (i.e. 'dNodeNumber'
  1435. is the 'dNodeNumber' of the child dnode(if the catalog supports dNodeNumbers, otherwise
  1436. this will be set to zero). The name will be the child dnode name. For other values of the
  1437. 'enumFlag', the value in the union will be LocalRecordID. In addition to kEnumDnodeMask it is
  1438. possible that kEnumForeignDNodeMask is also set. This is an advisory bit and application must make
  1439. it's own decision before displaying these records. If catalog supports kSupportIndexRatioMask, it
  1440. may also return the relative position of the record (percentile of total records) in the 
  1441. indexRatio field in EnumSpec.
  1442.  
  1443.  
  1444. responseSLRV will contain the script, language, region and version of the oce sorting software.
  1445. The results will be collected in the 'getBuffer' supplied by the user.
  1446. If buffer can not hold all the data returned 'kOCEMoreData' error will be returned.
  1447.  
  1448. If user receives 'noErr' or 'kOCEMoreData', buffer will contain valid results. A user
  1449. can extract the results in the 'getBuffer' by making DirEnumerateParse' call.
  1450. }
  1451.     DirEnumerateGetPBPtr = ^DirEnumerateGetPB;
  1452.     DirEnumerateGetPB = RECORD
  1453.         qLink:                    Ptr;
  1454.         reserved1:                LONGINT;
  1455.         reserved2:                LONGINT;
  1456.         ioCompletion:            DirIOCompletionUPP;
  1457.         ioResult:                OSErr;
  1458.         saveA5:                    LONGINT;
  1459.         reqCode:                INTEGER;
  1460.         reserved:                ARRAY [0..1] OF LONGINT;
  1461.         serverHint:                AddrBlock;
  1462.         dsRefNum:                INTEGER;
  1463.         callID:                    LONGINT;
  1464.         identity:                AuthIdentity;
  1465.         gReserved1:                LONGINT;
  1466.         gReserved2:                LONGINT;
  1467.         gReserved3:                LONGINT;
  1468.         clientData:                LONGINT;
  1469.         aRLI:                    PackedRLIPtr;                            {   --> an RLI specifying the cluster to be enumerated  }
  1470.         startingPoint:            DirEnumSpecPtr;                            {   -->  }
  1471.         sortBy:                    DirSortOption;                            {   -->  }
  1472.         sortDirection:            DirSortDirection;                        {   -->  }
  1473.         dReserved:                LONGINT;                                {   --   }
  1474.         nameMatchString:        RStringPtr;                                {   --> name from which enumeration should start  }
  1475.         typesList:                ^RStringPtr;                            {   --> list of entity types to be enumerated  }
  1476.         typeCount:                LONGINT;                                {   --> number of types in the list  }
  1477.         enumFlags:                DirEnumChoices;                            {   --> indicates what to enumerate  }
  1478.         includeStartingPoint:    BOOLEAN;                                {   --> if true return the record specified in starting point  }
  1479.         padByte:                SInt8;
  1480.         matchNameHow:            SInt8;                                    {   --> Matching Criteria for nameMatchString  }
  1481.         matchTypeHow:            SInt8;                                    {   --> Matching Criteria for typeList  }
  1482.         getBuffer:                Ptr;                                    {   -->  }
  1483.         getBufferSize:            LONGINT;                                {   -->  }
  1484.         responseSLRV:            SLRV;                                    {   <--  response SLRV  }
  1485.     END;
  1486.  
  1487. {  The EnumerateRecords call-back function is defined as follows:  }
  1488.     ForEachDirEnumSpecProcPtr = ProcPtr;  { FUNCTION ForEachDirEnumSpec(clientData: LONGINT; (CONST)VAR enumSpec: DirEnumSpec): BOOLEAN; }
  1489.  
  1490.     ForEachDirEnumSpecUPP = UniversalProcPtr;
  1491.     ForEachDirEnumSpec                    = ForEachDirEnumSpecUPP;
  1492. {
  1493. EnumerateParse:
  1494. After an EnumerateGet call has completed, call EnumerateParse
  1495. to parse through the buffer that was filled in EnumerateGet.
  1496.  
  1497. 'eachEnumSpec' will be called each time to return to the client a
  1498. DirEnumSpec that matches the pattern for enumeration. 'enumFlag' indicates the type
  1499. of information returned in the DirEnumSpec
  1500. The clientData parameter that you pass in the parameter block will be passed
  1501. to 'forEachEnumDSSpecFunc'.  You are free to put anything in clientData - it is intended
  1502. to allow you some way to match the call-back to the original call (for
  1503. example, you make more then one aysynchronous EnumerateGet calls and you want to
  1504. associate returned results in some way).
  1505.  
  1506. The client should return FALSE from 'eachEnumSpec' to continue
  1507. processing of the EnumerateParse request.  Returning TRUE will
  1508. terminate the EnumerateParse request.
  1509.  
  1510. For synchronous calls, the call-back routine actually runs as part of the same thread
  1511. of execution as the thread that made the EnumerateParse call.  That means that the
  1512. same low-memory globals, A5, stack, etc. are in effect during the call-back
  1513. that were in effect when the call was made.  Because of this, the call-back
  1514. routine has the same restrictions as the caller of EnumerateParse:
  1515. if EnumerateParse was not called from interrupt level, then the call-
  1516. back routine can allocate memory. For asynchronous calls, call-back routine is
  1517. like a ioCompletion except that A5 will be preserved for the application.
  1518. }
  1519.     DirEnumerateParsePBPtr = ^DirEnumerateParsePB;
  1520.     DirEnumerateParsePB = RECORD
  1521.         qLink:                    Ptr;
  1522.         reserved1:                LONGINT;
  1523.         reserved2:                LONGINT;
  1524.         ioCompletion:            DirIOCompletionUPP;
  1525.         ioResult:                OSErr;
  1526.         saveA5:                    LONGINT;
  1527.         reqCode:                INTEGER;
  1528.         reserved:                ARRAY [0..1] OF LONGINT;
  1529.         serverHint:                AddrBlock;
  1530.         dsRefNum:                INTEGER;
  1531.         callID:                    LONGINT;
  1532.         identity:                AuthIdentity;
  1533.         gReserved1:                LONGINT;
  1534.         gReserved2:                LONGINT;
  1535.         gReserved3:                LONGINT;
  1536.         clientData:                LONGINT;
  1537.         aRLI:                    PackedRLIPtr;                            {   --> an RLI specifying the cluster to be enumerated  }
  1538.         bReserved:                LONGINT;                                {   --   }
  1539.         cReserved:                LONGINT;                                {   --   }
  1540.         eachEnumSpec:            ForEachDirEnumSpec;                        {   -->  }
  1541.         eReserved:                LONGINT;                                {   --   }
  1542.         fReserved:                LONGINT;                                {   --   }
  1543.         gReserved:                LONGINT;                                {   --   }
  1544.         hReserved:                LONGINT;                                {   --   }
  1545.         iReserved:                LONGINT;                                {   --   }
  1546.         getBuffer:                Ptr;                                    {   -->  }
  1547.         getBufferSize:            LONGINT;                                {   -->  }
  1548.         l1Reserved:                INTEGER;                                {   --  }
  1549.         l2Reserved:                INTEGER;                                {   --   }
  1550.         l3Reserved:                INTEGER;                                {   --  }
  1551.         l4Reserved:                INTEGER;                                {   --   }
  1552.     END;
  1553.  
  1554. {
  1555.  * FindRecordGet operates similarly to DirEnumerate except it returns a list
  1556.  * of records instead of records local to a cluster.
  1557. }
  1558.     DirFindRecordGetPBPtr = ^DirFindRecordGetPB;
  1559.     DirFindRecordGetPB = RECORD
  1560.         qLink:                    Ptr;
  1561.         reserved1:                LONGINT;
  1562.         reserved2:                LONGINT;
  1563.         ioCompletion:            DirIOCompletionUPP;
  1564.         ioResult:                OSErr;
  1565.         saveA5:                    LONGINT;
  1566.         reqCode:                INTEGER;
  1567.         reserved:                ARRAY [0..1] OF LONGINT;
  1568.         serverHint:                AddrBlock;
  1569.         dsRefNum:                INTEGER;
  1570.         callID:                    LONGINT;
  1571.         identity:                AuthIdentity;
  1572.         gReserved1:                LONGINT;
  1573.         gReserved2:                LONGINT;
  1574.         gReserved3:                LONGINT;
  1575.         clientData:                LONGINT;
  1576.         startingPoint:            RecordIDPtr;
  1577.         reservedA:                ARRAY [0..1] OF LONGINT;
  1578.         nameMatchString:        RStringPtr;
  1579.         typesList:                ^RStringPtr;
  1580.         typeCount:                LONGINT;
  1581.         reservedB:                LONGINT;
  1582.         reservedC:                INTEGER;
  1583.         matchNameHow:            SInt8;
  1584.         matchTypeHow:            SInt8;
  1585.         getBuffer:                Ptr;
  1586.         getBufferSize:            LONGINT;
  1587.         directoryName:            DirectoryNamePtr;
  1588.         discriminator:            DirDiscriminator;
  1589.     END;
  1590.  
  1591. {  The FindRecordParse call-back function is defined as follows:  }
  1592.     ForEachRecordProcPtr = ProcPtr;  { FUNCTION ForEachRecord(clientData: LONGINT; (CONST)VAR enumSpec: DirEnumSpec; pRLI: PackedRLIPtr): BOOLEAN; }
  1593.  
  1594.     ForEachRecordUPP = UniversalProcPtr;
  1595.     ForEachRecord                        = ForEachRecordUPP;
  1596. {
  1597.  * This PB same as DirFindRecordGet except it includes the callback function
  1598. }
  1599.     DirFindRecordParsePBPtr = ^DirFindRecordParsePB;
  1600.     DirFindRecordParsePB = RECORD
  1601.         qLink:                    Ptr;
  1602.         reserved1:                LONGINT;
  1603.         reserved2:                LONGINT;
  1604.         ioCompletion:            DirIOCompletionUPP;
  1605.         ioResult:                OSErr;
  1606.         saveA5:                    LONGINT;
  1607.         reqCode:                INTEGER;
  1608.         reserved:                ARRAY [0..1] OF LONGINT;
  1609.         serverHint:                AddrBlock;
  1610.         dsRefNum:                INTEGER;
  1611.         callID:                    LONGINT;
  1612.         identity:                AuthIdentity;
  1613.         gReserved1:                LONGINT;
  1614.         gReserved2:                LONGINT;
  1615.         gReserved3:                LONGINT;
  1616.         clientData:                LONGINT;
  1617.         startingPoint:            RecordIDPtr;
  1618.         reservedA:                ARRAY [0..1] OF LONGINT;
  1619.         nameMatchString:        RStringPtr;
  1620.         typesList:                ^RStringPtr;
  1621.         typeCount:                LONGINT;
  1622.         reservedB:                LONGINT;
  1623.         reservedC:                INTEGER;
  1624.         matchNameHow:            SInt8;
  1625.         matchTypeHow:            SInt8;
  1626.         getBuffer:                Ptr;
  1627.         getBufferSize:            LONGINT;
  1628.         directoryName:            DirectoryNamePtr;
  1629.         discriminator:            DirDiscriminator;
  1630.         forEachRecordFunc:        ForEachRecord;
  1631.     END;
  1632.  
  1633. {
  1634. LookupGet:
  1635.  
  1636. aRecordList is an array of pointers to RecordIDs, each of which must
  1637. contain valid PackedRLI and a CreationID.  recordIDCount is
  1638. the size of this array.
  1639.  
  1640. attrTypeList is an array of pointers to AttributeTypes.  attrTypeCount is
  1641. the size of this array.
  1642.  
  1643. staringRecordIndex is the record from which to continue the lookup.
  1644. If you want to start from first record in the list, this must be 1 (not zero).
  1645. This value must always be <= recordIDCount.
  1646.  
  1647. startingAttributeIndex is the AttributeType from which we want to continue the lookup.
  1648. If you want to start from first attribute in the list, this must be 1 (not zero).
  1649. This value must always be <= attrTypeCount.
  1650.  
  1651. startingAttribute is the value of the attribute value from which we want to
  1652. continue lookup. In case of catalogs supporting creationIDs, startingAttribute
  1653. may contain only a CID. Other catalogs may require the entire value.
  1654. If a non-null cid is given and if an attribute value with that cid is not found, this
  1655. call will terminate with kOCENoSuchAttribute error. A client should not make a LookupParse call
  1656. after getting this error.
  1657.  
  1658. 'includeStartingPoint' boolean can be set to 'true' to receive the value specified in the
  1659. startingPoint in the results returned. If this is set to 'false', the value
  1660. specified in the startingAttribute will not be returned.
  1661.  
  1662. When LookupGet call fails with kOCEMoreData, the client will be able to find out where the call ended
  1663. with a subsequent LookupParse call. When the LookupParse call completes with kOCEMoreData,
  1664. lastRecordIndex, lastAttributeIndex and lastValueCID will point to the corresponding
  1665. recordID, attributeType and the CreationID of the last value returned successfully. These parameters
  1666. are exactly the same ones for the startingRecordIndex, startingAttributeIndex, and startingAttrValueCID
  1667. so they can be used in a subsequent LookupGet call to continue the lookup.
  1668.  
  1669. In an extreme case, It is possible that we had an attribute value that is too large to fit
  1670. in the client's buffer. In such cases, if it was the only thing that we tried to fit
  1671. into the buffer, the client will not able to proceed further because he will not know the
  1672. attributeCID of the attribute to continue with.  Also he does not know how big a buffer
  1673. would be needed for the next call to get this 'mondo' attribute value successfully.
  1674.  
  1675. to support this, LookupParse call will do the following:
  1676.  
  1677. If LookupGet has failed with kOCEMoreData error, LookupParse will check to make sure that
  1678. ForEachAttributeValueFunc has been called at least once. If so, the client has the option
  1679. to continue from that attribute CreationID (for PAB/ADAP) in the next LookupGet call.
  1680. However, if it was not even called once, then the attribute value may be too big to fit in the
  1681. user's buffer. In this case, lastAttrValueCID (lastAttribute) and attrSize are returned in the
  1682. parse buffer and the call will fail with kOCEMoreAttrValue. However, it is possible that
  1683. ForEachAttributeValue was not called because the user does not have read access to some of
  1684. the attributeTypes in the list, and the buffer was full before even reading the creationID of
  1685. any of the attribute values.  A kOCEMoreData error is returned.
  1686.  
  1687. The Toolbox will check for duplicate RecordIDs in the aRecordList. If found, it will return
  1688. 'daDuplicateRecordIDErr'.
  1689.  
  1690. The Toolbox will check for duplicate AttributeTypes in the attrTypeList. If found it will
  1691. return 'daDuplicateAttrTypeErr'.
  1692. }
  1693.     DirLookupGetPBPtr = ^DirLookupGetPB;
  1694.     DirLookupGetPB = RECORD
  1695.         qLink:                    Ptr;
  1696.         reserved1:                LONGINT;
  1697.         reserved2:                LONGINT;
  1698.         ioCompletion:            DirIOCompletionUPP;
  1699.         ioResult:                OSErr;
  1700.         saveA5:                    LONGINT;
  1701.         reqCode:                INTEGER;
  1702.         reserved:                ARRAY [0..1] OF LONGINT;
  1703.         serverHint:                AddrBlock;
  1704.         dsRefNum:                INTEGER;
  1705.         callID:                    LONGINT;
  1706.         identity:                AuthIdentity;
  1707.         gReserved1:                LONGINT;
  1708.         gReserved2:                LONGINT;
  1709.         gReserved3:                LONGINT;
  1710.         clientData:                LONGINT;
  1711.         aRecordList:            ^RecordIDPtr;                            {   --> an array of RecordID pointers  }
  1712.         attrTypeList:            ^AttributeTypePtr;                        {   --> an array of attribute types  }
  1713.         cReserved:                LONGINT;                                {   --   }
  1714.         dReserved:                LONGINT;                                {   --   }
  1715.         eReserved:                LONGINT;                                {   --   }
  1716.         fReserved:                LONGINT;                                {   --   }
  1717.         recordIDCount:            LONGINT;                                {   -->  }
  1718.         attrTypeCount:            LONGINT;                                {   -->  }
  1719.         includeStartingPoint:    BOOLEAN;                                {   --> if true return the value specified by the starting indices  }
  1720.         padByte:                SInt8;
  1721.         i1Reserved:                INTEGER;                                {   --   }
  1722.         getBuffer:                Ptr;                                    {   -->  }
  1723.         getBufferSize:            LONGINT;                                {   -->  }
  1724.         startingRecordIndex:    LONGINT;                                {   --> start from this record  }
  1725.         startingAttrTypeIndex:    LONGINT;                                {   --> start from this attribute type  }
  1726.         startingAttribute:        Attribute;                                {   --> start from this attribute value  }
  1727.         pReserved:                LONGINT;                                {   --   }
  1728.     END;
  1729.  
  1730. {  The Lookup call-back functions are defined as follows:  }
  1731.     ForEachLookupRecordIDProcPtr = ProcPtr;  { FUNCTION ForEachLookupRecordID(clientData: LONGINT; (CONST)VAR recordID: RecordID): BOOLEAN; }
  1732.  
  1733.     ForEachLookupRecordIDUPP = UniversalProcPtr;
  1734.     ForEachLookupRecordID                = ForEachLookupRecordIDUPP;
  1735.     ForEachAttrTypeLookupProcPtr = ProcPtr;  { FUNCTION ForEachAttrTypeLookup(clientData: LONGINT; (CONST)VAR attrType: AttributeType; myAttrAccMask: AccessMask): BOOLEAN; }
  1736.  
  1737.     ForEachAttrTypeLookupUPP = UniversalProcPtr;
  1738.     ForEachAttrTypeLookup                = ForEachAttrTypeLookupUPP;
  1739.     ForEachAttrValueProcPtr = ProcPtr;  { FUNCTION ForEachAttrValue(clientData: LONGINT; (CONST)VAR attribute: Attribute): BOOLEAN; }
  1740.  
  1741.     ForEachAttrValueUPP = UniversalProcPtr;
  1742.     ForEachAttrValue                    = ForEachAttrValueUPP;
  1743. {
  1744. LookupParse:
  1745.  
  1746. After a LookupGet call has completed, call LookupParse
  1747. to parse through the buffer that was filled in LookupGet.  The
  1748. toolbox will parse through the buffer and call the appropriate call-back routines
  1749. for each item in the getBuffer.
  1750.  
  1751. 'eachRecordID' will be called each time to return to the client one of the
  1752. RecordIDs from aRecordList.  The clientData parameter that you
  1753. pass in the parameter block will be passed to eachRecordID.
  1754. You are free to put anything in clientData - it is intended to allow
  1755. you some way to match the call-back to the original call (in case, for
  1756. example, you make simultaneous asynchronous LookupGet calls).  If you don't
  1757. want to get a call-back for each RecordID (for example, if you're looking up
  1758. attributes for only one RecordID), pass nil for eachRecordID.
  1759.  
  1760. After forEachLocalRecordIDFunc is called, eachAttrType may be called to pass an
  1761. attribute type (one from attrTypeList) that exists in the record specified
  1762. in the last eachRecordID call.  If you don't want to get a call-back for
  1763. each AttributeType (for example, if you're looking up only one attribute type,
  1764. or you prefer to read the type from the Attribute struct during the eachAttrValue
  1765. call-back routine), pass nil for eachAttrType. However access controls may
  1766. prohibit you from reading some attribute types; in that case eachAttrValue
  1767. may not be called even though the value exists. Hence the client should
  1768. supply this call-back function to see the access controls for each attribute type.
  1769.  
  1770. This will be followed by one or more calls to eachAttrValue, to pass the
  1771. type, tag, and attribute value.  NOTE THIS CHANGE:  you are no longer expected to
  1772. pass a pointer to a buffer in which to put the value.  Now you get a pointer to
  1773. the value, and you can process it within the call-back routine.
  1774. After one or more values are returned, eachAttrType may be called again to pass
  1775. another attribute type that exists in the last-specified RecordID.
  1776.  
  1777. The client should return FALSE from eachRecordID, eachAttrType, and
  1778. eachAttrValue to continue processing of the LookupParse request.  Returning TRUE
  1779. from any call-back will terminate the LookupParse request.
  1780.  
  1781. If LookupGet has failed with kOCEMoreData error, LookupParse will check to make sure that
  1782. ForEachAttributeValueFunc has been called at least once. If so, the client has the option
  1783. to continue from that attribute CreationID (for PAB/ADAP) in the next LookupGet call.
  1784. However, if it was not even called once, then the attribute value may be too big to fit in the
  1785. user's buffer. In this case, lastAttrValueCID (lastAttribute) and attrSize are returned in the
  1786. parse buffer and the call will fail with kOCEMoreAttrValue. However, it is possible that
  1787. ForEachAttributeValue was not called because the user does not have read access to some of
  1788. the attributeTypes in the list, and the buffer was full before even reading the creationID of
  1789. any of the attribute values.  A kOCEMoreData error is returned.
  1790.  
  1791. For synchronous calls, the call-back routine actually runs as part of the same thread
  1792. of execution as the thread that made the LookupParse call.  That means that the
  1793. same low-memory globals, A5, stack, etc. are in effect during the call-back
  1794. that were in effect when the call was made.  Because of this, the call-back
  1795. routine has the same restrictions as the caller of LookupParse:
  1796. if LookupParse was not called from interrupt level, then the call-
  1797. back routine can allocate memory. For asynchronous calls, call-back routine is
  1798. like a ioCompletion except that A5 will be preserved for the application.
  1799. }
  1800.     DirLookupParsePBPtr = ^DirLookupParsePB;
  1801.     DirLookupParsePB = RECORD
  1802.         qLink:                    Ptr;
  1803.         reserved1:                LONGINT;
  1804.         reserved2:                LONGINT;
  1805.         ioCompletion:            DirIOCompletionUPP;
  1806.         ioResult:                OSErr;
  1807.         saveA5:                    LONGINT;
  1808.         reqCode:                INTEGER;
  1809.         reserved:                ARRAY [0..1] OF LONGINT;
  1810.         serverHint:                AddrBlock;
  1811.         dsRefNum:                INTEGER;
  1812.         callID:                    LONGINT;
  1813.         identity:                AuthIdentity;
  1814.         gReserved1:                LONGINT;
  1815.         gReserved2:                LONGINT;
  1816.         gReserved3:                LONGINT;
  1817.         clientData:                LONGINT;
  1818.         aRecordList:            ^RecordIDPtr;                            {   --> must be same from the corresponding Get call  }
  1819.         attrTypeList:            ^AttributeTypePtr;                        {   --> must be same from the corresponding Get call  }
  1820.         cReserved:                LONGINT;                                {   --   }
  1821.         eachRecordID:            ForEachLookupRecordID;                    {   -->  }
  1822.         eachAttrType:            ForEachAttrTypeLookup;                    {   -->  }
  1823.         eachAttrValue:            ForEachAttrValue;                        {   -->  }
  1824.         recordIDCount:            LONGINT;                                {   --> must be same from the corresponding Get call  }
  1825.         attrTypeCount:            LONGINT;                                {   --> must be same from the corresponding Get call  }
  1826.         iReserved:                LONGINT;                                {   --   }
  1827.         getBuffer:                Ptr;                                    {   --> must be same from the corresponding Get call }
  1828.         getBufferSize:            LONGINT;                                {   --> must be same from the corresponding Get call }
  1829.         lastRecordIndex:        LONGINT;                                {  <--  last RecordID processed when parse completed  }
  1830.         lastAttributeIndex:        LONGINT;                                {  <--  last Attribute Type processed when parse completed  }
  1831.         lastAttribute:            Attribute;                                {  <--  last attribute value (with this CreationID) processed when parse completed  }
  1832.         attrSize:                LONGINT;                                {  <--  length of the attribute we did not return  }
  1833.     END;
  1834.  
  1835. {  AddAttributeValue  }
  1836.     DirAddAttributeValuePBPtr = ^DirAddAttributeValuePB;
  1837.     DirAddAttributeValuePB = RECORD
  1838.         qLink:                    Ptr;
  1839.         reserved1:                LONGINT;
  1840.         reserved2:                LONGINT;
  1841.         ioCompletion:            DirIOCompletionUPP;
  1842.         ioResult:                OSErr;
  1843.         saveA5:                    LONGINT;
  1844.         reqCode:                INTEGER;
  1845.         reserved:                ARRAY [0..1] OF LONGINT;
  1846.         serverHint:                AddrBlock;
  1847.         dsRefNum:                INTEGER;
  1848.         callID:                    LONGINT;
  1849.         identity:                AuthIdentity;
  1850.         gReserved1:                LONGINT;
  1851.         gReserved2:                LONGINT;
  1852.         gReserved3:                LONGINT;
  1853.         clientData:                LONGINT;
  1854.         aRecord:                RecordIDPtr;                            {   -->  }
  1855.         attr:                    AttributePtr;                            {   --> AttributeCreationID returned here  }
  1856.     END;
  1857.  
  1858. {
  1859. aRecord must contain valid PackedRLI and a CreationID.
  1860.  
  1861. Instead of passing type, length, and value in three separate
  1862. fields, we take a pointer to an Attribute structure that contains
  1863. all three, and has room for the AttributeCreationNumber.
  1864. The AttributeCreationID will be returned in the attr itself.
  1865.  
  1866. The AttributeTag tells the catalog service that the attribute is an RString,
  1867. binary, or a RecordID.
  1868. }
  1869. {
  1870. DeleteAttributeType:
  1871. This call is provided so that an existing AttributeType can be deleted.
  1872. If any attribute values exist for this type, they will all be deleted
  1873. (if the user has access rights to delete the values) and then the attribute type
  1874. will be deleted. Otherwise dsAccessDenied error will be returned.
  1875. }
  1876.     DirDeleteAttributeTypePBPtr = ^DirDeleteAttributeTypePB;
  1877.     DirDeleteAttributeTypePB = RECORD
  1878.         qLink:                    Ptr;
  1879.         reserved1:                LONGINT;
  1880.         reserved2:                LONGINT;
  1881.         ioCompletion:            DirIOCompletionUPP;
  1882.         ioResult:                OSErr;
  1883.         saveA5:                    LONGINT;
  1884.         reqCode:                INTEGER;
  1885.         reserved:                ARRAY [0..1] OF LONGINT;
  1886.         serverHint:                AddrBlock;
  1887.         dsRefNum:                INTEGER;
  1888.         callID:                    LONGINT;
  1889.         identity:                AuthIdentity;
  1890.         gReserved1:                LONGINT;
  1891.         gReserved2:                LONGINT;
  1892.         gReserved3:                LONGINT;
  1893.         clientData:                LONGINT;
  1894.         aRecord:                RecordIDPtr;                            {   -->  }
  1895.         attrType:                AttributeTypePtr;                        {   -->  }
  1896.     END;
  1897.  
  1898. {
  1899.     DeleteAttributeValue
  1900. }
  1901.     DirDeleteAttributeValuePBPtr = ^DirDeleteAttributeValuePB;
  1902.     DirDeleteAttributeValuePB = RECORD
  1903.         qLink:                    Ptr;
  1904.         reserved1:                LONGINT;
  1905.         reserved2:                LONGINT;
  1906.         ioCompletion:            DirIOCompletionUPP;
  1907.         ioResult:                OSErr;
  1908.         saveA5:                    LONGINT;
  1909.         reqCode:                INTEGER;
  1910.         reserved:                ARRAY [0..1] OF LONGINT;
  1911.         serverHint:                AddrBlock;
  1912.         dsRefNum:                INTEGER;
  1913.         callID:                    LONGINT;
  1914.         identity:                AuthIdentity;
  1915.         gReserved1:                LONGINT;
  1916.         gReserved2:                LONGINT;
  1917.         gReserved3:                LONGINT;
  1918.         clientData:                LONGINT;
  1919.         aRecord:                RecordIDPtr;                            {   ->  }
  1920.         attr:                    AttributePtr;                            {   ->  }
  1921.     END;
  1922.  
  1923. {
  1924.     ChangeAttributeValue:
  1925.     currentAttr ==> the attribute to be changed. For ADAS and PAB CreationID is
  1926.                     sufficient
  1927.     newAttr     ==> new value for the attribute. For ADAS and PAB 
  1928.                     CreationID field will be set when
  1929.                     the call succeesfully completes
  1930.     
  1931.     aRecord     ==> must contain valid PackedRecordLocationInfo and a CreationID.
  1932.  
  1933.  
  1934.     
  1935. }
  1936.     DirChangeAttributeValuePBPtr = ^DirChangeAttributeValuePB;
  1937.     DirChangeAttributeValuePB = RECORD
  1938.         qLink:                    Ptr;
  1939.         reserved1:                LONGINT;
  1940.         reserved2:                LONGINT;
  1941.         ioCompletion:            DirIOCompletionUPP;
  1942.         ioResult:                OSErr;
  1943.         saveA5:                    LONGINT;
  1944.         reqCode:                INTEGER;
  1945.         reserved:                ARRAY [0..1] OF LONGINT;
  1946.         serverHint:                AddrBlock;
  1947.         dsRefNum:                INTEGER;
  1948.         callID:                    LONGINT;
  1949.         identity:                AuthIdentity;
  1950.         gReserved1:                LONGINT;
  1951.         gReserved2:                LONGINT;
  1952.         gReserved3:                LONGINT;
  1953.         clientData:                LONGINT;
  1954.         aRecord:                RecordIDPtr;                            {   ->  }
  1955.         currentAttr:            AttributePtr;                            {   ->  }
  1956.         newAttr:                AttributePtr;                            {   ->  }
  1957.     END;
  1958.  
  1959. {  VerifyAttributeValue  }
  1960.     DirVerifyAttributeValuePBPtr = ^DirVerifyAttributeValuePB;
  1961.     DirVerifyAttributeValuePB = RECORD
  1962.         qLink:                    Ptr;
  1963.         reserved1:                LONGINT;
  1964.         reserved2:                LONGINT;
  1965.         ioCompletion:            DirIOCompletionUPP;
  1966.         ioResult:                OSErr;
  1967.         saveA5:                    LONGINT;
  1968.         reqCode:                INTEGER;
  1969.         reserved:                ARRAY [0..1] OF LONGINT;
  1970.         serverHint:                AddrBlock;
  1971.         dsRefNum:                INTEGER;
  1972.         callID:                    LONGINT;
  1973.         identity:                AuthIdentity;
  1974.         gReserved1:                LONGINT;
  1975.         gReserved2:                LONGINT;
  1976.         gReserved3:                LONGINT;
  1977.         clientData:                LONGINT;
  1978.         aRecord:                RecordIDPtr;                            {   -->  }
  1979.         attr:                    AttributePtr;                            {   -->  }
  1980.     END;
  1981.  
  1982. {
  1983. aRecord must contain valid PackedRLI and a CreationID.
  1984.  
  1985. The attribute type and value are passed in the attribute structure.  If the
  1986. attribute CreationID is non-zero, the server will verify that an attribute with
  1987. the specified value and creation number exists in aRecord.  If the attribute
  1988. CreationID is zero, the server will verify the attribute by type and value
  1989. alone, and return the attribute CreationID in the Attribute struct if the
  1990. attribute exists.
  1991. }
  1992. {
  1993. EnumerateAttributeTypesGet:
  1994. The following two calls can be used to enumerate the attribute types present in
  1995. a specified RecordID.  The first, EnumerateAttributeTypesGet, processes the request
  1996. and reads the response into getBuffer, as much as will fit.  A kOCEMoreData error will
  1997. be returned if the buffer was not large enough.  After this call completes, the
  1998. client can call EnumerateAttributeTypesParse (see below).
  1999.  
  2000. The user will able to continue from a startingPoint by setting a startingAttrType.
  2001. Typically, this should be the last value returned in EnumerateAttributeTypesParse call
  2002. when 'kOCEMoreData' is returned.
  2003.  
  2004. If 'includeStartingPoint' is true when a 'startingAttrType' is specified, the starting value
  2005. will be included in the results, if it exists. If this is set to false, this value will not
  2006. be included. AttributeTypes following this type will be returned.
  2007. }
  2008.     DirEnumerateAttributeTypesGetPBPtr = ^DirEnumerateAttributeTypesGetPB;
  2009.     DirEnumerateAttributeTypesGetPB = RECORD
  2010.         qLink:                    Ptr;
  2011.         reserved1:                LONGINT;
  2012.         reserved2:                LONGINT;
  2013.         ioCompletion:            DirIOCompletionUPP;
  2014.         ioResult:                OSErr;
  2015.         saveA5:                    LONGINT;
  2016.         reqCode:                INTEGER;
  2017.         reserved:                ARRAY [0..1] OF LONGINT;
  2018.         serverHint:                AddrBlock;
  2019.         dsRefNum:                INTEGER;
  2020.         callID:                    LONGINT;
  2021.         identity:                AuthIdentity;
  2022.         gReserved1:                LONGINT;
  2023.         gReserved2:                LONGINT;
  2024.         gReserved3:                LONGINT;
  2025.         clientData:                LONGINT;
  2026.         aRecord:                RecordIDPtr;                            {   -->  }
  2027.         startingAttrType:        AttributeTypePtr;                        {   --> starting point  }
  2028.         cReserved:                LONGINT;                                {   --   }
  2029.         dReserved:                LONGINT;                                {   --   }
  2030.         eReserved:                LONGINT;                                {   --   }
  2031.         fReserved:                LONGINT;                                {   --   }
  2032.         gReserved:                LONGINT;                                {   --   }
  2033.         hReserved:                LONGINT;                                {   --   }
  2034.         includeStartingPoint:    BOOLEAN;                                {   --> if true return the attrType specified by starting point  }
  2035.         padByte:                SInt8;
  2036.         i1Reserved:                INTEGER;                                {   --   }
  2037.         getBuffer:                Ptr;                                    {   -->  }
  2038.         getBufferSize:            LONGINT;                                {   -->  }
  2039.     END;
  2040.  
  2041. {  The call-back function is defined as follows:  }
  2042.     ForEachAttrTypeProcPtr = ProcPtr;  { FUNCTION ForEachAttrType(clientData: LONGINT; (CONST)VAR attrType: AttributeType): BOOLEAN; }
  2043.  
  2044.     ForEachAttrTypeUPP = UniversalProcPtr;
  2045.     ForEachAttrType                        = ForEachAttrTypeUPP;
  2046. {
  2047. EnumerateAttributeTypesParse:
  2048. After an EnumerateAttributeTypesGet call has completed, call EnumerateAttributeTypesParse
  2049. to parse through the buffer that was filled in EnumerateAttributeTypesGet.  The
  2050. toolbox will parse through the buffer and call the call-back routine for
  2051. each attribute type in the getBuffer.
  2052.  
  2053. The client should return false from eachAttrType to continue
  2054. processing of the EnumerateAttributeTypesParse request.  Returning true will
  2055. terminate the EnumerateAttributeTypesParse request.  The clientData parameter that
  2056. you pass in the parameter block will be passed to eachAttrType.
  2057. You are free to put anything in clientData - it is intended to allow
  2058. you some way to match the call-back to the original call (in case, for
  2059. example, you make simultaneous asynchronous calls).
  2060.  
  2061. For synchronous calls, the call-back routine actually runs as part of the same thread
  2062. of execution as the thread that made the EnumerateAttributeTypesParse call.  That means that the
  2063. same low-memory globals, A5, stack, etc. are in effect during the call-back
  2064. that were in effect when the call was made.  Because of this, the call-back
  2065. routine has the same restrictions as the caller of EnumerateAttributeTypesParse.
  2066. If EnumerateAttributeTypesParse was not called from interrupt level, then the call-
  2067. back routine can allocate memory. For asynchronous calls, call-back routine is
  2068. like a ioCompletion except that A5 will be preserved for the application.
  2069. }
  2070.     DirEnumerateAttributeTypesParsePBPtr = ^DirEnumerateAttributeTypesParsePB;
  2071.     DirEnumerateAttributeTypesParsePB = RECORD
  2072.         qLink:                    Ptr;
  2073.         reserved1:                LONGINT;
  2074.         reserved2:                LONGINT;
  2075.         ioCompletion:            DirIOCompletionUPP;
  2076.         ioResult:                OSErr;
  2077.         saveA5:                    LONGINT;
  2078.         reqCode:                INTEGER;
  2079.         reserved:                ARRAY [0..1] OF LONGINT;
  2080.         serverHint:                AddrBlock;
  2081.         dsRefNum:                INTEGER;
  2082.         callID:                    LONGINT;
  2083.         identity:                AuthIdentity;
  2084.         gReserved1:                LONGINT;
  2085.         gReserved2:                LONGINT;
  2086.         gReserved3:                LONGINT;
  2087.         clientData:                LONGINT;
  2088.         aRecord:                RecordIDPtr;                            {   --> Same as DirEnumerateAttributeTypesGetPB  }
  2089.         bReserved:                LONGINT;                                {   --   }
  2090.         cReserved:                LONGINT;                                {   --   }
  2091.         dReserved:                LONGINT;                                {   --   }
  2092.         eachAttrType:            ForEachAttrType;                        {   -->  }
  2093.         fReserved:                LONGINT;                                {   --   }
  2094.         gReserved:                LONGINT;                                {   --   }
  2095.         hReserved:                LONGINT;                                {   --   }
  2096.         iReserved:                LONGINT;                                {   --   }
  2097.         getBuffer:                Ptr;                                    {   -->  }
  2098.         getBufferSize:            LONGINT;                                {   -->  }
  2099.     END;
  2100.  
  2101. {
  2102. DirAbort:
  2103. With this call a user will able to abort an outstanding catalog service call.
  2104. A user must pass a pointer to the parameter block for the outstanding call.
  2105. In the current version of the product, the toolbox will process this call
  2106. for NetSearchADAPDirectoriesGet or FindADAPDirectoryByNetSearch calls and if possible
  2107. it will abort. For other calls for ADAP and PAB this will return 'daAbortFailErr'.
  2108. For CSAM catalogs, this call will be passed to the corresponding CSAM driver.
  2109. The CSAM driver may process this call or may return 'daAbortFailErr'. This call can
  2110. be called only in synchronous mode. Since the abort call makes references to fields in
  2111. the pb associated with the original call, this pb must not be disposed or or altered if
  2112. the original call completes before the abort call has completed.
  2113. }
  2114.     DirAbortPBPtr = ^DirAbortPB;
  2115.     DirAbortPB = RECORD
  2116.         qLink:                    Ptr;
  2117.         reserved1:                LONGINT;
  2118.         reserved2:                LONGINT;
  2119.         ioCompletion:            DirIOCompletionUPP;
  2120.         ioResult:                OSErr;
  2121.         saveA5:                    LONGINT;
  2122.         reqCode:                INTEGER;
  2123.         reserved:                ARRAY [0..1] OF LONGINT;
  2124.         serverHint:                AddrBlock;
  2125.         dsRefNum:                INTEGER;
  2126.         callID:                    LONGINT;
  2127.         identity:                AuthIdentity;
  2128.         gReserved1:                LONGINT;
  2129.         gReserved2:                LONGINT;
  2130.         gReserved3:                LONGINT;
  2131.         clientData:                LONGINT;
  2132.         pb:                        DirParamBlockPtr;                        {   --> pb for the call which must be aborted  }
  2133.     END;
  2134.  
  2135. {
  2136. AddPseudonym:
  2137. An alternate name and type can be added to a given record. If allowDuplicate
  2138. is set the name and type will be added even if the same name and type already
  2139. exists.
  2140. }
  2141.     DirAddPseudonymPBPtr = ^DirAddPseudonymPB;
  2142.     DirAddPseudonymPB = RECORD
  2143.         qLink:                    Ptr;
  2144.         reserved1:                LONGINT;
  2145.         reserved2:                LONGINT;
  2146.         ioCompletion:            DirIOCompletionUPP;
  2147.         ioResult:                OSErr;
  2148.         saveA5:                    LONGINT;
  2149.         reqCode:                INTEGER;
  2150.         reserved:                ARRAY [0..1] OF LONGINT;
  2151.         serverHint:                AddrBlock;
  2152.         dsRefNum:                INTEGER;
  2153.         callID:                    LONGINT;
  2154.         identity:                AuthIdentity;
  2155.         gReserved1:                LONGINT;
  2156.         gReserved2:                LONGINT;
  2157.         gReserved3:                LONGINT;
  2158.         clientData:                LONGINT;
  2159.         aRecord:                RecordIDPtr;                            {   --> RecordID to which pseudonym is to be added  }
  2160.         pseudonymName:            RStringPtr;                                {   --> new name to be added as pseudonym  }
  2161.         pseudonymType:            RStringPtr;                                {   --> new name to be added as pseudonym  }
  2162.         allowDuplicate:            BOOLEAN;                                {   -->  }
  2163.         filler1:                BOOLEAN;
  2164.     END;
  2165.  
  2166. {
  2167. DeletePseudonym:
  2168. An alternate name and type for a given record can be deleted.
  2169. }
  2170.     DirDeletePseudonymPBPtr = ^DirDeletePseudonymPB;
  2171.     DirDeletePseudonymPB = RECORD
  2172.         qLink:                    Ptr;
  2173.         reserved1:                LONGINT;
  2174.         reserved2:                LONGINT;
  2175.         ioCompletion:            DirIOCompletionUPP;
  2176.         ioResult:                OSErr;
  2177.         saveA5:                    LONGINT;
  2178.         reqCode:                INTEGER;
  2179.         reserved:                ARRAY [0..1] OF LONGINT;
  2180.         serverHint:                AddrBlock;
  2181.         dsRefNum:                INTEGER;
  2182.         callID:                    LONGINT;
  2183.         identity:                AuthIdentity;
  2184.         gReserved1:                LONGINT;
  2185.         gReserved2:                LONGINT;
  2186.         gReserved3:                LONGINT;
  2187.         clientData:                LONGINT;
  2188.         aRecord:                RecordIDPtr;                            {   --> RecordID to which pseudonym to be added  }
  2189.         pseudonymName:            RStringPtr;                                {   --> pseudonymName to be deleted  }
  2190.         pseudonymType:            RStringPtr;                                {   --> pseudonymType to be deleted  }
  2191.     END;
  2192.  
  2193. {
  2194.     AddAlias:
  2195.     This call can be used to create an alias  record. The alias
  2196.     can be created either in the same or different cluster. ADAS will not support
  2197.     this call for this release. A new catalog capability flag 'kSupportsAlias' will indicate
  2198.     if the catalog supports this call. PAB's will support this call. For the PAB implementation,
  2199.     this call will create a record with the name and type specified an aRecord.
  2200.     This call works exactly like AddRecord.
  2201.     If 'allowDuplicate' is false and another record with same name and type already exists
  2202.     'daNoDupAllowed' error will be returned.
  2203. }
  2204.     DirAddAliasPBPtr = ^DirAddAliasPB;
  2205.     DirAddAliasPB = RECORD
  2206.         qLink:                    Ptr;
  2207.         reserved1:                LONGINT;
  2208.         reserved2:                LONGINT;
  2209.         ioCompletion:            DirIOCompletionUPP;
  2210.         ioResult:                OSErr;
  2211.         saveA5:                    LONGINT;
  2212.         reqCode:                INTEGER;
  2213.         reserved:                ARRAY [0..1] OF LONGINT;
  2214.         serverHint:                AddrBlock;
  2215.         dsRefNum:                INTEGER;
  2216.         callID:                    LONGINT;
  2217.         identity:                AuthIdentity;
  2218.         gReserved1:                LONGINT;
  2219.         gReserved2:                LONGINT;
  2220.         gReserved3:                LONGINT;
  2221.         clientData:                LONGINT;
  2222.         aRecord:                RecordIDPtr;                            {   ->  }
  2223.         allowDuplicate:            BOOLEAN;                                {   ->  }
  2224.         filler1:                BOOLEAN;
  2225.     END;
  2226.  
  2227. {
  2228. DirFindValue:
  2229. This call can be used to find the occurrence of a value. The value
  2230. to be matched is passed in the buffer 'matchingData' field. The current
  2231. ADAP/PAB implementation will match a maximum of 32 bytes of data.
  2232. For attribute values in the PAB/ADAP implementation, only the first 32 bytes will
  2233. be used for comparing the occurrence of data. Search can be restricted to
  2234. a particular record and/or attribute type by specifying 'aRecord' or 'aType'.
  2235. After finding one occurrence, 'startingRecord' and 'startingAttribute'
  2236. can be specified to find the next occurrence of the same value.
  2237. 'sortDirection' can be specified with starting values to search forward or backward.
  2238. When a matching value is found, the 'recordFound' indicates the reccordID in which the
  2239. data occurrence was found, 'attributeFound' indicates the attribute with in which the
  2240. matching data was found. ADAP/PAB implementation returns only the type and creationID of
  2241. attributes. Catalogs which don't support creationIDs may return the
  2242. complete value; hence this call may need a buffer to hold the data. For ADAP/PAB implementations
  2243. the user has to make a DirLookup call to get the actual data. 'recordFound' and
  2244. 'attributeFound' can be used to initialize 'startingRecord' and 'startingAttribute' to
  2245. find the next occurrence of the value.
  2246. }
  2247.     DirFindValuePBPtr = ^DirFindValuePB;
  2248.     DirFindValuePB = RECORD
  2249.         qLink:                    Ptr;
  2250.         reserved1:                LONGINT;
  2251.         reserved2:                LONGINT;
  2252.         ioCompletion:            DirIOCompletionUPP;
  2253.         ioResult:                OSErr;
  2254.         saveA5:                    LONGINT;
  2255.         reqCode:                INTEGER;
  2256.         reserved:                ARRAY [0..1] OF LONGINT;
  2257.         serverHint:                AddrBlock;
  2258.         dsRefNum:                INTEGER;
  2259.         callID:                    LONGINT;
  2260.         identity:                AuthIdentity;
  2261.         gReserved1:                LONGINT;
  2262.         gReserved2:                LONGINT;
  2263.         gReserved3:                LONGINT;
  2264.         clientData:                LONGINT;
  2265.         aRLI:                    PackedRLIPtr;                            {   --> an RLI specifying the cluster to be enumerated  }
  2266.         aRecord:                LocalRecordIDPtr;                        {   --> if not nil, look only in this record  }
  2267.         attrType:                AttributeTypePtr;                        {   --> if not nil, look only in this attribute type  }
  2268.         startingRecord:            LocalRecordIDPtr;                        {   --> record in which to start searching  }
  2269.         startingAttribute:        AttributePtr;                            {   --> attribute in which to start searching  }
  2270.         recordFound:            LocalRecordIDPtr;                        {  <--  record in which data was found  }
  2271.         attributeFound:            Attribute;                                {  <--  attribute in which data was found  }
  2272.         matchSize:                LONGINT;                                {   --> length of matching bytes  }
  2273.         matchingData:            Ptr;                                    {   --> data bytes to be matched in search  }
  2274.         sortDirection:            DirSortDirection;                        {   --> sort direction (forwards or backwards)  }
  2275.     END;
  2276.  
  2277. {
  2278. EnumeratePseudonymGet:
  2279. This call can be used to enumerate the existing pseudonyms for
  2280. a given record specified in 'aRecord'. A starting point can be specified
  2281. by 'startingName' and 'startingType'. If the 'includeStartingPoint' boolean
  2282. is true and a starting point is specified, the name specified by startingName
  2283. and startingType also is returned in the results, if it exists. If this is set to false,
  2284. the pseudonym in startingName and Type is not included.
  2285. Pseudonyms returned in the 'getBuffer' can be extracted by making an
  2286. EnumeratePseudonymParse call. The results will consist of a RecordID with the
  2287. name and type of the pseudonym. If the buffer could not hold all the results, then
  2288. 'kOCEMoreData' error will be returned. The user will be able to continue the call by
  2289. using the last result returned as starting point for the next call.
  2290. }
  2291.     DirEnumeratePseudonymGetPBPtr = ^DirEnumeratePseudonymGetPB;
  2292.     DirEnumeratePseudonymGetPB = RECORD
  2293.         qLink:                    Ptr;
  2294.         reserved1:                LONGINT;
  2295.         reserved2:                LONGINT;
  2296.         ioCompletion:            DirIOCompletionUPP;
  2297.         ioResult:                OSErr;
  2298.         saveA5:                    LONGINT;
  2299.         reqCode:                INTEGER;
  2300.         reserved:                ARRAY [0..1] OF LONGINT;
  2301.         serverHint:                AddrBlock;
  2302.         dsRefNum:                INTEGER;
  2303.         callID:                    LONGINT;
  2304.         identity:                AuthIdentity;
  2305.         gReserved1:                LONGINT;
  2306.         gReserved2:                LONGINT;
  2307.         gReserved3:                LONGINT;
  2308.         clientData:                LONGINT;
  2309.         aRecord:                RecordIDPtr;                            {   -->  }
  2310.         startingName:            RStringPtr;                                {   -->  }
  2311.         startingType:            RStringPtr;                                {   -->  }
  2312.         dReserved:                LONGINT;                                {   --   }
  2313.         eReserved:                LONGINT;                                {   --   }
  2314.         fReserved:                LONGINT;                                {   --   }
  2315.         gReserved:                LONGINT;                                {   --   }
  2316.         hReserved:                LONGINT;                                {   --   }
  2317.         includeStartingPoint:    BOOLEAN;                                {   --> if true return the Pseudonym specified by starting point will be included  }
  2318.         padByte:                SInt8;
  2319.         i1Reserved:                INTEGER;                                {   --   }
  2320.         getBuffer:                Ptr;                                    {   -->  }
  2321.         getBufferSize:            LONGINT;                                {   -->  }
  2322.     END;
  2323.  
  2324. {  The call-back function is defined as follows:  }
  2325.     ForEachRecordIDProcPtr = ProcPtr;  { FUNCTION ForEachRecordID(clientData: LONGINT; (CONST)VAR recordID: RecordID): BOOLEAN; }
  2326.  
  2327.     ForEachRecordIDUPP = UniversalProcPtr;
  2328.     ForEachRecordID                        = ForEachRecordIDUPP;
  2329. {
  2330. EnumeratePseudonymParse:
  2331. The pseudonyms returned in the 'getBuffer' from the EnumeratePseudonymGet call
  2332. can be extracted by using the EnumeratePseudonymParse call. 'eachRecordID'
  2333. will be called for each pseudonym.
  2334.  
  2335. Returning true from any call-back will terminate the EnumeratePseudonymParse call.
  2336.  
  2337. For synchronous calls, the call-back routine actually runs as part of the same thread
  2338. of execution as the thread that made the EnumeratePseudonymParse call.  That means that the
  2339. same low-memory globals, A5, stack, etc. are in effect during the call-back
  2340. that were in effect when the call was made.  Because of this, the call-back
  2341. routine has the same restrictions as the caller of EnumeratePseudonymParse:
  2342. if EnumeratePseudonymParse was not called from interrupt level, then the call-
  2343. back routine can allocate memory. For asynchronous calls, call-back routine is
  2344. like a ioCompletion except that A5 will be preserved for the application.
  2345. }
  2346.     DirEnumeratePseudonymParsePBPtr = ^DirEnumeratePseudonymParsePB;
  2347.     DirEnumeratePseudonymParsePB = RECORD
  2348.         qLink:                    Ptr;
  2349.         reserved1:                LONGINT;
  2350.         reserved2:                LONGINT;
  2351.         ioCompletion:            DirIOCompletionUPP;
  2352.         ioResult:                OSErr;
  2353.         saveA5:                    LONGINT;
  2354.         reqCode:                INTEGER;
  2355.         reserved:                ARRAY [0..1] OF LONGINT;
  2356.         serverHint:                AddrBlock;
  2357.         dsRefNum:                INTEGER;
  2358.         callID:                    LONGINT;
  2359.         identity:                AuthIdentity;
  2360.         gReserved1:                LONGINT;
  2361.         gReserved2:                LONGINT;
  2362.         gReserved3:                LONGINT;
  2363.         clientData:                LONGINT;
  2364.         aRecord:                RecordIDPtr;                            {   --> same as DirEnumerateAliasesGetPB  }
  2365.         bReserved:                LONGINT;                                {   --   }
  2366.         cReserved:                LONGINT;                                {   --   }
  2367.         eachRecordID:            ForEachRecordID;                        {   -->  }
  2368.         eReserved:                LONGINT;                                {   --   }
  2369.         fReserved:                LONGINT;                                {   --   }
  2370.         gReserved:                LONGINT;                                {   --   }
  2371.         hReserved:                LONGINT;                                {   --   }
  2372.         iReserved:                LONGINT;                                {   --   }
  2373.         getBuffer:                Ptr;                                    {   -->  }
  2374.         getBufferSize:            LONGINT;                                {   -->  }
  2375.     END;
  2376.  
  2377. {  GetNameAndType  }
  2378.     DirGetNameAndTypePBPtr = ^DirGetNameAndTypePB;
  2379.     DirGetNameAndTypePB = RECORD
  2380.         qLink:                    Ptr;
  2381.         reserved1:                LONGINT;
  2382.         reserved2:                LONGINT;
  2383.         ioCompletion:            DirIOCompletionUPP;
  2384.         ioResult:                OSErr;
  2385.         saveA5:                    LONGINT;
  2386.         reqCode:                INTEGER;
  2387.         reserved:                ARRAY [0..1] OF LONGINT;
  2388.         serverHint:                AddrBlock;
  2389.         dsRefNum:                INTEGER;
  2390.         callID:                    LONGINT;
  2391.         identity:                AuthIdentity;
  2392.         gReserved1:                LONGINT;
  2393.         gReserved2:                LONGINT;
  2394.         gReserved3:                LONGINT;
  2395.         clientData:                LONGINT;
  2396.         aRecord:                RecordIDPtr;                            {   -->  }
  2397.     END;
  2398.  
  2399. {
  2400. aRecord must contain valid RLI and a CreationID.  It
  2401. must also contain pointers to maximum-length RStrings (name and type fields)
  2402. in which will be returned the record's distinguished name and type.
  2403. }
  2404. {
  2405. SetNameAndType:
  2406. This call can be used to change a name and type for a record. The record
  2407. to be renamed is specified using 'aRecord'.
  2408. 'newName' and 'newType' indicate the name and type to be set.
  2409. 'allowDuplicate' if true indicates that name is to be set even if another
  2410. name and type exactly matches the newName and newType specified.
  2411.  
  2412. 'newName' and 'newType' are required since the catalogs not supporting
  2413. CreationID require name and type fields in the recordID to identify a given
  2414. record.
  2415. }
  2416.     DirSetNameAndTypePBPtr = ^DirSetNameAndTypePB;
  2417.     DirSetNameAndTypePB = RECORD
  2418.         qLink:                    Ptr;
  2419.         reserved1:                LONGINT;
  2420.         reserved2:                LONGINT;
  2421.         ioCompletion:            DirIOCompletionUPP;
  2422.         ioResult:                OSErr;
  2423.         saveA5:                    LONGINT;
  2424.         reqCode:                INTEGER;
  2425.         reserved:                ARRAY [0..1] OF LONGINT;
  2426.         serverHint:                AddrBlock;
  2427.         dsRefNum:                INTEGER;
  2428.         callID:                    LONGINT;
  2429.         identity:                AuthIdentity;
  2430.         gReserved1:                LONGINT;
  2431.         gReserved2:                LONGINT;
  2432.         gReserved3:                LONGINT;
  2433.         clientData:                LONGINT;
  2434.         aRecord:                RecordIDPtr;                            {   -->  }
  2435.         allowDuplicate:            BOOLEAN;                                {   -->  }
  2436.         padByte:                SInt8;
  2437.         newName:                RStringPtr;                                {   --> new name for the record  }
  2438.         newType:                RStringPtr;                                {   --> new type for the record  }
  2439.     END;
  2440.  
  2441. {
  2442. DirGetMetaRecordInfo: This call can be made to obtain
  2443. the MetaRecordInfo for a given record. Information returned
  2444. is 16 bytes of OPAQUE information about the record.
  2445. }
  2446.     DirGetRecordMetaInfoPBPtr = ^DirGetRecordMetaInfoPB;
  2447.     DirGetRecordMetaInfoPB = RECORD
  2448.         qLink:                    Ptr;
  2449.         reserved1:                LONGINT;
  2450.         reserved2:                LONGINT;
  2451.         ioCompletion:            DirIOCompletionUPP;
  2452.         ioResult:                OSErr;
  2453.         saveA5:                    LONGINT;
  2454.         reqCode:                INTEGER;
  2455.         reserved:                ARRAY [0..1] OF LONGINT;
  2456.         serverHint:                AddrBlock;
  2457.         dsRefNum:                INTEGER;
  2458.         callID:                    LONGINT;
  2459.         identity:                AuthIdentity;
  2460.         gReserved1:                LONGINT;
  2461.         gReserved2:                LONGINT;
  2462.         gReserved3:                LONGINT;
  2463.         clientData:                LONGINT;
  2464.         aRecord:                RecordIDPtr;                            {   -->  }
  2465.         metaInfo:                DirMetaInfo;                            {  <--   }
  2466.     END;
  2467.  
  2468. {
  2469. DirGetDNodeMetaInfo: This call can be made to obtain
  2470. the DNodeMetaInfo for a given Packed RLI. Information returned
  2471. is 16 bytes of OPAQUE information about the DNode.
  2472. }
  2473.     DirGetDNodeMetaInfoPBPtr = ^DirGetDNodeMetaInfoPB;
  2474.     DirGetDNodeMetaInfoPB = RECORD
  2475.         qLink:                    Ptr;
  2476.         reserved1:                LONGINT;
  2477.         reserved2:                LONGINT;
  2478.         ioCompletion:            DirIOCompletionUPP;
  2479.         ioResult:                OSErr;
  2480.         saveA5:                    LONGINT;
  2481.         reqCode:                INTEGER;
  2482.         reserved:                ARRAY [0..1] OF LONGINT;
  2483.         serverHint:                AddrBlock;
  2484.         dsRefNum:                INTEGER;
  2485.         callID:                    LONGINT;
  2486.         identity:                AuthIdentity;
  2487.         gReserved1:                LONGINT;
  2488.         gReserved2:                LONGINT;
  2489.         gReserved3:                LONGINT;
  2490.         clientData:                LONGINT;
  2491.         pRLI:                    PackedRLIPtr;                            {   -->  }
  2492.         metaInfo:                DirMetaInfo;                            {  <--   }
  2493.     END;
  2494.  
  2495. {
  2496. EnumerateDirectoriesGet:
  2497. A user can enumerate all the catalogs installed. This includes installed
  2498. ADAP and CSAM catalogs. The user can specify a signature as input to restrict
  2499. the results. kDirADAPKind will return only ADAP catalogs, kDirDSAMKind
  2500. will return all CSAM catalogs. kDirAllKinds will get both ADAP & CSAM catalogs.
  2501. A specific signature (e.g. X.500) may be used to get catalogs with an X.500 signature.
  2502. The information for each catalog returned will have directoryName, discriminator and features.
  2503.  
  2504. If the user receives 'noErr' or 'kOCEMoreData', the buffer will contain valid results. A user
  2505. can extract the results in the 'getBuffer' by making an DirEnumerateDirectories call.
  2506.  
  2507. If 'kOCEMoreData' is received, the user can continue enumeration by using the last catalog and
  2508. discriminator as startingDirectoryName and staringDirDiscriminator in the next call.
  2509.  
  2510. If 'includeStartingPoint' is true and a starting point is specified,
  2511. the staring point will be returned in the result. If false, it is not included.
  2512. }
  2513.     DirEnumerateDirectoriesGetPBPtr = ^DirEnumerateDirectoriesGetPB;
  2514.     DirEnumerateDirectoriesGetPB = RECORD
  2515.         qLink:                    Ptr;
  2516.         reserved1:                LONGINT;
  2517.         reserved2:                LONGINT;
  2518.         ioCompletion:            DirIOCompletionUPP;
  2519.         ioResult:                OSErr;
  2520.         saveA5:                    LONGINT;
  2521.         reqCode:                INTEGER;
  2522.         reserved:                ARRAY [0..1] OF LONGINT;
  2523.         serverHint:                AddrBlock;
  2524.         dsRefNum:                INTEGER;
  2525.         callID:                    LONGINT;
  2526.         identity:                AuthIdentity;
  2527.         gReserved1:                LONGINT;
  2528.         gReserved2:                LONGINT;
  2529.         gReserved3:                LONGINT;
  2530.         clientData:                LONGINT;
  2531.         directoryKind:            OCEDirectoryKind;                        {   --> enumerate catalogs bearing this signature  }
  2532.         startingDirectoryName:    DirectoryNamePtr;                        {   --> staring catalog name  }
  2533.         startingDirDiscriminator: DirDiscriminator;                        {   --> staring catalog discriminator  }
  2534.         eReserved:                LONGINT;                                {   --   }
  2535.         fReserved:                LONGINT;                                {   --   }
  2536.         gReserved:                LONGINT;                                {   --   }
  2537.         hReserved:                LONGINT;                                {   --   }
  2538.         includeStartingPoint:    BOOLEAN;                                {   --> if true return the catalog specified by starting point  }
  2539.         padByte:                SInt8;
  2540.         i1Reserved:                INTEGER;                                {   --   }
  2541.         getBuffer:                Ptr;                                    {   -->  }
  2542.         getBufferSize:            LONGINT;                                {   -->  }
  2543.     END;
  2544.  
  2545.     ForEachDirectoryProcPtr = ProcPtr;  { FUNCTION ForEachDirectory(clientData: LONGINT; (CONST)VAR dirName: DirectoryName; (CONST)VAR discriminator: DirDiscriminator; features: DirGestalt): BOOLEAN; }
  2546.  
  2547.     ForEachDirectoryUPP = UniversalProcPtr;
  2548.     ForEachDirectory                    = ForEachDirectoryUPP;
  2549. {
  2550. EnumerateDirectoriesParse:
  2551. The catalog info returned in 'getBuffer' from the EnumerateDirectoriesGet call
  2552. can be extracted using the EnumerateDirectoriesParse call. 'eachDirectory' will
  2553. be called for each catalog.
  2554.  
  2555. Returning true from any call-back will terminate the EnumerateDirectoriesParse call.
  2556.  
  2557. For synchronous calls, the call-back routine actually runs as part of the same thread
  2558. of execution as the thread that made the EnumerateDirectoriesParse call.  That means that the
  2559. same low-memory globals, A5, stack, etc. are in effect during the call-back
  2560. that were in effect when the call was made.  Because of this, the call-back
  2561. routine has the same restrictions as the caller of EnumerateDirectoriesParse:
  2562. if EnumerateDirectoriesParse was not called from interrupt level, then the call-
  2563. back routine can allocate memory. For asynchronous calls, call-back routine is
  2564. like a ioCompletion except that A5 will be preserved for the application.
  2565.  
  2566. eachDirectory will be called each time to return to the client a
  2567. DirectoryName, DirDiscriminator, and features for that catalog.
  2568. }
  2569.     DirEnumerateDirectoriesParsePBPtr = ^DirEnumerateDirectoriesParsePB;
  2570.     DirEnumerateDirectoriesParsePB = RECORD
  2571.         qLink:                    Ptr;
  2572.         reserved1:                LONGINT;
  2573.         reserved2:                LONGINT;
  2574.         ioCompletion:            DirIOCompletionUPP;
  2575.         ioResult:                OSErr;
  2576.         saveA5:                    LONGINT;
  2577.         reqCode:                INTEGER;
  2578.         reserved:                ARRAY [0..1] OF LONGINT;
  2579.         serverHint:                AddrBlock;
  2580.         dsRefNum:                INTEGER;
  2581.         callID:                    LONGINT;
  2582.         identity:                AuthIdentity;
  2583.         gReserved1:                LONGINT;
  2584.         gReserved2:                LONGINT;
  2585.         gReserved3:                LONGINT;
  2586.         clientData:                LONGINT;
  2587.         aReserved:                LONGINT;                                {   --   }
  2588.         bReserved:                LONGINT;                                {   --   }
  2589.         cReserved:                LONGINT;                                {   --   }
  2590.         dReserved:                LONGINT;                                {   --   }
  2591.         eachDirectory:            ForEachDirectory;                        {   -->  }
  2592.         fReserved:                LONGINT;                                {   --   }
  2593.         gReserved:                LONGINT;                                {   --   }
  2594.         hReserved:                LONGINT;                                {   --   }
  2595.         iReserved:                LONGINT;                                {   --   }
  2596.         getBuffer:                Ptr;                                    {   -->  }
  2597.         getBufferSize:            LONGINT;                                {   -->  }
  2598.     END;
  2599.  
  2600. {
  2601. The Following five call are specific to ADAP Catalogs. Toolbox
  2602. remembers a list of catalogs across boots. If any catalog service
  2603. call is intended for a ADAP catalog, then it must be in the list.
  2604. In order for managing this list, A client (Probably DE will use these
  2605. calls.
  2606. DirAddADAPDirectoryPB: Add a new ADAP catalog to the list.
  2607. DirRemoveADAPDirectory: Remove a ADAP catalog from the list.
  2608. DirNetSearchADAPDirectoriesGet:   search an internet for adas catalogs.
  2609. DirNetSearchADAPDirectoriesParse: extract the results obtained NetSearchADAPDirectoriesGet.
  2610. DirFindADAPDirectoryByNetSearch: Find a specified catalog through net search.
  2611. }
  2612. {
  2613. NetSearchADAPDirectoriesGet:
  2614. This call can be used to make a network wide search for finding ADAP catalogs.
  2615. This call will be supported only by 'ADAP' and involve highly expensive
  2616. network operations, so the user is advised to use utmost discretion before
  2617. making this call. The results will be collected in the 'getbuffer' and can be
  2618. extracted using NetSearchADAPDirectoriesParse call. The directoryName,
  2619. the directoryDiscriminator, features and serverHint (AppleTalk address for
  2620. a PathFinder serving that catalog) are collected for each catalog found
  2621. on the network. If buffer is too small to hold all the catalogs found on
  2622. the network, a 'kOCEMoreData' error will be returned.
  2623. }
  2624.     DirNetSearchADAPDirectoriesGetPBPtr = ^DirNetSearchADAPDirectoriesGetPB;
  2625.     DirNetSearchADAPDirectoriesGetPB = RECORD
  2626.         qLink:                    Ptr;
  2627.         reserved1:                LONGINT;
  2628.         reserved2:                LONGINT;
  2629.         ioCompletion:            DirIOCompletionUPP;
  2630.         ioResult:                OSErr;
  2631.         saveA5:                    LONGINT;
  2632.         reqCode:                INTEGER;
  2633.         reserved:                ARRAY [0..1] OF LONGINT;
  2634.         serverHint:                AddrBlock;
  2635.         dsRefNum:                INTEGER;
  2636.         callID:                    LONGINT;
  2637.         identity:                AuthIdentity;
  2638.         gReserved1:                LONGINT;
  2639.         gReserved2:                LONGINT;
  2640.         gReserved3:                LONGINT;
  2641.         clientData:                LONGINT;
  2642.         getBuffer:                Ptr;                                    {   -->  }
  2643.         getBufferSize:            LONGINT;                                {   -->  }
  2644.         cReserved:                LONGINT;                                {   --   }
  2645.     END;
  2646.  
  2647.     ForEachADAPDirectoryProcPtr = ProcPtr;  { FUNCTION ForEachADAPDirectory(clientData: LONGINT; (CONST)VAR dirName: DirectoryName; (CONST)VAR discriminator: DirDiscriminator; features: DirGestalt; serverHint: AddrBlock): BOOLEAN; }
  2648.  
  2649.     ForEachADAPDirectoryUPP = UniversalProcPtr;
  2650.     ForEachADAPDirectory                = ForEachADAPDirectoryUPP;
  2651. {
  2652. DirNetSearchADAPDirectoriesParse:
  2653. This call can be used to extract the results obtained in the 'getBuffer'.
  2654. The directoryName, directoryDiscriminator, features and
  2655. serverHint (AppleTalk address for a PathFinder serving that catalog) are
  2656. returned in each call-back. These values may be used to make an
  2657. AddADAPDirectory call.
  2658.  
  2659. Returning TRUE from any call-back will terminate the NetSearchADAPDirectoriesParse request.
  2660.  
  2661. For synchronous calls, the call-back routine actually runs as part of the same thread
  2662. of execution as the thread that made the DirNetSearchADAPDirectoriesParse call. That means that the
  2663. same low-memory globals, A5, stack, etc. are in effect during the call-back
  2664. that were in effect when the call was made.  Because of this, the call-back
  2665. routine has the same restrictions as the caller of DirNetSearchADAPDirectoriesParse:
  2666. if DirNetSearchADAPDirectoriesParse was not called from interrupt level, then the call-
  2667. back routine can allocate memory. For asynchronous calls, call-back routine is
  2668. like a ioCompletion except that A5 will be preserved for the application.
  2669. }
  2670.     DirNetSearchADAPDirectoriesParsePBPtr = ^DirNetSearchADAPDirectoriesParsePB;
  2671.     DirNetSearchADAPDirectoriesParsePB = RECORD
  2672.         qLink:                    Ptr;
  2673.         reserved1:                LONGINT;
  2674.         reserved2:                LONGINT;
  2675.         ioCompletion:            DirIOCompletionUPP;
  2676.         ioResult:                OSErr;
  2677.         saveA5:                    LONGINT;
  2678.         reqCode:                INTEGER;
  2679.         reserved:                ARRAY [0..1] OF LONGINT;
  2680.         serverHint:                AddrBlock;
  2681.         dsRefNum:                INTEGER;
  2682.         callID:                    LONGINT;
  2683.         identity:                AuthIdentity;
  2684.         gReserved1:                LONGINT;
  2685.         gReserved2:                LONGINT;
  2686.         gReserved3:                LONGINT;
  2687.         clientData:                LONGINT;
  2688.         getBuffer:                Ptr;                                    {   -->  }
  2689.         getBufferSize:            LONGINT;                                {   -->  }
  2690.         eachADAPDirectory:        ForEachADAPDirectory;                    {   -->  }
  2691.     END;
  2692.  
  2693. {
  2694. DirFindADAPDirectoryByNetSearch:
  2695. This call can be used to make a network wide search to find an ADAP catalog.
  2696. This call will be supported only by 'ADAP' and involves highly expensive
  2697. network operations, so the user is advised to use utmost discretion before
  2698. making this call. The catalog is specified using directoryName and discriminator.
  2699. If 'addToOCESetup' is true, the catalog will be automatically added to the setup
  2700. list and will be visible through the EnumerateDirectories call and also
  2701. also a creationID to the directoryRecord will be returned.
  2702. If this parameter is set to 'false', the catalog will be added to temporary list
  2703. and will be available for making other catalog service calls. The catalogs
  2704. which are not in the preference catalog list will not be visible through the
  2705. EnumerateDirectories call.
  2706. }
  2707.     DirFindADAPDirectoryByNetSearchPBPtr = ^DirFindADAPDirectoryByNetSearchPB;
  2708.     DirFindADAPDirectoryByNetSearchPB = RECORD
  2709.         qLink:                    Ptr;
  2710.         reserved1:                LONGINT;
  2711.         reserved2:                LONGINT;
  2712.         ioCompletion:            DirIOCompletionUPP;
  2713.         ioResult:                OSErr;
  2714.         saveA5:                    LONGINT;
  2715.         reqCode:                INTEGER;
  2716.         reserved:                ARRAY [0..1] OF LONGINT;
  2717.         serverHint:                AddrBlock;
  2718.         dsRefNum:                INTEGER;
  2719.         callID:                    LONGINT;
  2720.         identity:                AuthIdentity;
  2721.         gReserved1:                LONGINT;
  2722.         gReserved2:                LONGINT;
  2723.         gReserved3:                LONGINT;
  2724.         clientData:                LONGINT;
  2725.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  2726.         discriminator:            DirDiscriminator;                        {   --> discriminate between dup catalog names  }
  2727.         addToOCESetup:            BOOLEAN;                                {   --> add this catalog to OCE Setup List  }
  2728.         padByte:                SInt8;
  2729.         directoryRecordCID:        CreationID;                                {  <--  creationID for the catalog record  }
  2730.     END;
  2731.  
  2732. {
  2733. DirAddADAPDirectory:
  2734. The catalog specified by 'directoryName' and 'discriminator' will be
  2735. added to the list of catalogs maintained by the Toolbox. Once added,
  2736. the catalog is available across boots, until the catalog is removed
  2737. explicitly through a DirRemoveADAPDirectory call.
  2738. If 'serverHint' is not nil, the address provided will be used
  2739. to contact a PathFinder for the catalog specified.
  2740. If 'serverHint' is nil or does not point to a valid PathFinder server
  2741. for that catalog, this call will fail.
  2742. If 'addToOCESetup' is true, the catalog will be automatically added to the setup
  2743. catalog list and will be visible through EnumerateDirectories calls and
  2744. also a creationID to the directoryRecord will be returned.
  2745. If this parameter is set to 'false', catalog will be added to temprary list
  2746. and will be available for making other catalog service calls. The catalogs
  2747. which are not in the setup  list will not be visible through
  2748. EnumerateDirectories call.
  2749. }
  2750.     DirAddADAPDirectoryPBPtr = ^DirAddADAPDirectoryPB;
  2751.     DirAddADAPDirectoryPB = RECORD
  2752.         qLink:                    Ptr;
  2753.         reserved1:                LONGINT;
  2754.         reserved2:                LONGINT;
  2755.         ioCompletion:            DirIOCompletionUPP;
  2756.         ioResult:                OSErr;
  2757.         saveA5:                    LONGINT;
  2758.         reqCode:                INTEGER;
  2759.         reserved:                ARRAY [0..1] OF LONGINT;
  2760.         serverHint:                AddrBlock;
  2761.         dsRefNum:                INTEGER;
  2762.         callID:                    LONGINT;
  2763.         identity:                AuthIdentity;
  2764.         gReserved1:                LONGINT;
  2765.         gReserved2:                LONGINT;
  2766.         gReserved3:                LONGINT;
  2767.         clientData:                LONGINT;
  2768.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  2769.         discriminator:            DirDiscriminator;                        {   --> discriminate between dup catalog names  }
  2770.         addToOCESetup:            BOOLEAN;                                {   --> add this catalog to OCE Setup  }
  2771.         padByte:                SInt8;
  2772.         directoryRecordCID:        CreationID;                                {  <--  creationID for the catalog record  }
  2773.     END;
  2774.  
  2775. {
  2776. GetDirectoryInfo:
  2777. DirGetDirectoryInfo will do:
  2778.  
  2779. If a 'dsRefNum' is non-Zero, the catalog information for
  2780.     the corresponding  PAB will be  returned.
  2781.  If 'dsRefNum' is zero and 'serverHint' is non-zero, If the
  2782.  'serverHint' points to a valid ADAP Catalog Server(Path Finder),
  2783.  the catalog information (i.e. directoryName, discriminator, features)
  2784.  for that catalog will be returned.
  2785.     If a  valid catalog name and discriminator are provided
  2786.     features (Set of capability flags) for that catalog will be returned.
  2787. }
  2788.     DirGetDirectoryInfoPBPtr = ^DirGetDirectoryInfoPB;
  2789.     DirGetDirectoryInfoPB = RECORD
  2790.         qLink:                    Ptr;
  2791.         reserved1:                LONGINT;
  2792.         reserved2:                LONGINT;
  2793.         ioCompletion:            DirIOCompletionUPP;
  2794.         ioResult:                OSErr;
  2795.         saveA5:                    LONGINT;
  2796.         reqCode:                INTEGER;
  2797.         reserved:                ARRAY [0..1] OF LONGINT;
  2798.         serverHint:                AddrBlock;
  2799.         dsRefNum:                INTEGER;
  2800.         callID:                    LONGINT;
  2801.         identity:                AuthIdentity;
  2802.         gReserved1:                LONGINT;
  2803.         gReserved2:                LONGINT;
  2804.         gReserved3:                LONGINT;
  2805.         clientData:                LONGINT;
  2806.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  2807.         discriminator:            DirDiscriminator;                        {  <--> descriminate between dup catalog names  }
  2808.         features:                DirGestalt;                                {  <--  capability bit flags  }
  2809.     END;
  2810.  
  2811. {
  2812.  * Note on Access Controls:
  2813.  * Access control is based on a list model.
  2814.  * You can get access controls list which gives dsObject and accMask for each dsObject.
  2815.  * GetAccessControl can be limited to currently supplied identity by setting forCurrentUserOnly.
  2816.  * There are special DSObjects are defined in ADASTypes.h for each of the category
  2817.  * supported in ADAS Catalogs. (kOwner, kFriends, kAuthenticatedToCluster, 
  2818.  * kAuthenticatedToDirectory, kGuest) and DUGetActlDSSpec call can be used
  2819.  * to obtain appropraiate DSSpec before making set calls to ADAS catalogs.
  2820.  *
  2821. }
  2822. {
  2823.     GetDNodeAccessControlGet:
  2824.     This call can be done to get back access control list for a DNode.
  2825.     pRLI -> RLI of the DNode whose access control list is sought
  2826.     curUserAccMask -> If this is 'true', Access controls for the user specified by
  2827.                       the identity parameter will be returned other wise entire list
  2828.                       will be returned.
  2829.     startingDsObj  -> If this is not nil, list should be started after this object.
  2830.     startingPointInclusive -> If staringDsObj is specified, include that in the returned
  2831.                               results.
  2832.                               
  2833.     The results will be collected in the 'getBuffer' supplied by the user.
  2834.     If buffer can not hold all the data returned 'daMoreData' error will be returned.
  2835.      
  2836.     If user receives 'noErr' or 'daMoreData', buffer will contain valid results. A user
  2837.     can extract the results in the 'getBuffer' by making 'DsGetDNodeAccessControlParse' call.
  2838.     
  2839.     Results returned for each DSObject will contain DSSpecPtr and three sets of access mask. 
  2840.  
  2841. }
  2842.     DirGetDNodeAccessControlGetPBPtr = ^DirGetDNodeAccessControlGetPB;
  2843.     DirGetDNodeAccessControlGetPB = RECORD
  2844.         qLink:                    Ptr;
  2845.         reserved1:                LONGINT;
  2846.         reserved2:                LONGINT;
  2847.         ioCompletion:            DirIOCompletionUPP;
  2848.         ioResult:                OSErr;
  2849.         saveA5:                    LONGINT;
  2850.         reqCode:                INTEGER;
  2851.         reserved:                ARRAY [0..1] OF LONGINT;
  2852.         serverHint:                AddrBlock;
  2853.         dsRefNum:                INTEGER;
  2854.         callID:                    LONGINT;
  2855.         identity:                AuthIdentity;
  2856.         gReserved1:                LONGINT;
  2857.         gReserved2:                LONGINT;
  2858.         gReserved3:                LONGINT;
  2859.         clientData:                LONGINT;
  2860.         pRLI:                    PackedRLIPtr;                            {   -> RLI of the cluster whose access control list is sought   }
  2861.         bReserved:                LONGINT;                                {   -- unused  }
  2862.         cReserved:                LONGINT;                                {   -- unused  }
  2863.         dReserved:                LONGINT;                                {   -- unused  }
  2864.         eResreved:                LONGINT;                                {  -->  }
  2865.         forCurrentUserOnly:        BOOLEAN;                                {  -->   }
  2866.         filler1:                BOOLEAN;
  2867.         startingPoint:            DSSpecPtr;                                {  --> starting Point  }
  2868.         includeStartingPoint:    BOOLEAN;                                {  --> if true return the DsObject specified in starting point  }
  2869.         filler2:                BOOLEAN;
  2870.         getBuffer:                Ptr;                                    {     ->  }
  2871.         getBufferSize:            LONGINT;                                {   ->  }
  2872.     END;
  2873.  
  2874. {  The Access Control call-back function is defined as follows:  }
  2875.     ForEachDNodeAccessControlProcPtr = ProcPtr;  { FUNCTION ForEachDNodeAccessControl(clientData: LONGINT; (CONST)VAR dsObj: DSSpec; activeDnodeAccMask: AccessMask; defaultRecordAccMask: AccessMask; defaultAttributeAccMask: AccessMask): BOOLEAN; }
  2876.  
  2877.     ForEachDNodeAccessControlUPP = UniversalProcPtr;
  2878.     ForEachDNodeAccessControl            = ForEachDNodeAccessControlUPP;
  2879. {
  2880.     GetDNodeAccessControlParse:
  2881.     After an GetDNodeAccessControlGet call has completed, 
  2882.     call GetDNodeAccessControlParse to parse through the buffer that
  2883.     that was filled in GetDNodeAccessControlGet.
  2884.     
  2885.     'eachObject' will be called each time to return to the client a
  2886.     DsObject and a set of three accMasks (three long words) for that object.
  2887.     Acceesmasks returned apply to the dsObject in the callback :
  2888.     1. Currently Active Access mask for the specified DNode.
  2889.     2. Default Access mask for any Record in the DNode
  2890.     3. Default Access mask for any Attribute in the DNode
  2891.     The clientData parameter that you pass in the parameter block will be passed
  2892.     to 'eachObject'.  You are free to put anything in clientData - it is intended
  2893.     to allow you some way to match the call-back to the original call (for
  2894.     example, you make more then one aysynchronous GetDNodeAccessControlGet calls and you want to
  2895.     associate returned results in some way).
  2896.     
  2897.     The client should return FALSE from 'eachObject' to continue
  2898.     processing of the GetDNodeAccessControlParse request.  Returning TRUE will
  2899.     terminate the GetDNodeAccessControlParse request.
  2900.  
  2901.     For synchronous calls, the call-back routine actually runs as part of the same thread 
  2902.     of execution as the thread that made the GetDNodeAccessControlParse call.  That means that the
  2903.     same low-memory globals, A5, stack, etc. are in effect during the call-back
  2904.     that were in effect when the call was made.  Because of this, the call-back
  2905.     routine has the same restrictions as the caller of GetDNodeAccessControlParse:
  2906.     if GetDNodeAccessControlParse was not called from interrupt level, then the call-
  2907.     back routine can allocate memory. For asynchronous calls, call-back routine is
  2908.     like a ioCompletion except that A5 will be preserved for the application.
  2909.  
  2910.  
  2911. }
  2912.     DirGetDNodeAccessControlParsePBPtr = ^DirGetDNodeAccessControlParsePB;
  2913.     DirGetDNodeAccessControlParsePB = RECORD
  2914.         qLink:                    Ptr;
  2915.         reserved1:                LONGINT;
  2916.         reserved2:                LONGINT;
  2917.         ioCompletion:            DirIOCompletionUPP;
  2918.         ioResult:                OSErr;
  2919.         saveA5:                    LONGINT;
  2920.         reqCode:                INTEGER;
  2921.         reserved:                ARRAY [0..1] OF LONGINT;
  2922.         serverHint:                AddrBlock;
  2923.         dsRefNum:                INTEGER;
  2924.         callID:                    LONGINT;
  2925.         identity:                AuthIdentity;
  2926.         gReserved1:                LONGINT;
  2927.         gReserved2:                LONGINT;
  2928.         gReserved3:                LONGINT;
  2929.         clientData:                LONGINT;
  2930.         pRLI:                    PackedRLIPtr;                            {   -> RLI of the cluster   }
  2931.         bReserved:                LONGINT;                                {   -- unused  }
  2932.         cReserved:                LONGINT;                                {   -- unused  }
  2933.         dReserved:                LONGINT;                                {   -- unused  }
  2934.         eachObject:                ForEachDNodeAccessControl;                {  -->  }
  2935.         forCurrentUserOnly:        BOOLEAN;                                {  -->   }
  2936.         filler1:                BOOLEAN;
  2937.         startingPoint:            DSSpecPtr;                                {  --> starting Point  }
  2938.         includeStartingPoint:    BOOLEAN;                                {  --> if true return the record specified in starting point  }
  2939.         filler2:                BOOLEAN;
  2940.         getBuffer:                Ptr;                                    {     ->  }
  2941.         getBufferSize:            LONGINT;                                {   ->  }
  2942.     END;
  2943.  
  2944. {
  2945.     GetRecordAccessControlGet:
  2946.     This call can be done to get back access control list for a RecordID.
  2947.     aRecord -> RecordID to which access control list is sought
  2948.     curUserAccMask -> If this is 'true', Access controls for the user specified by
  2949.                       the identity parameter will be returned other wise entire list
  2950.                       will be returned.
  2951.     startingDsObj  -> If this is not nil, list should be started after this object.
  2952.     startingPointInclusive -> If staringDsObj is specified, include that in the returned
  2953.                               results.
  2954.                               
  2955.     The results will be collected in the 'getBuffer' supplied by the user.
  2956.     If buffer can not hold all the data returned 'daMoreData' error will be returned.
  2957.      
  2958.     If user receives 'noErr' or 'daMoreData', buffer will contain valid results. A user
  2959.     can extract the results in the 'getBuffer' by making 'DsGetDNodeAccessControlParse' call.
  2960.     
  2961.     Results returned for each DSObject will contain DSSpecPtr and accMask. 
  2962.  
  2963. }
  2964.     DirGetRecordAccessControlGetPBPtr = ^DirGetRecordAccessControlGetPB;
  2965.     DirGetRecordAccessControlGetPB = RECORD
  2966.         qLink:                    Ptr;
  2967.         reserved1:                LONGINT;
  2968.         reserved2:                LONGINT;
  2969.         ioCompletion:            DirIOCompletionUPP;
  2970.         ioResult:                OSErr;
  2971.         saveA5:                    LONGINT;
  2972.         reqCode:                INTEGER;
  2973.         reserved:                ARRAY [0..1] OF LONGINT;
  2974.         serverHint:                AddrBlock;
  2975.         dsRefNum:                INTEGER;
  2976.         callID:                    LONGINT;
  2977.         identity:                AuthIdentity;
  2978.         gReserved1:                LONGINT;
  2979.         gReserved2:                LONGINT;
  2980.         gReserved3:                LONGINT;
  2981.         clientData:                LONGINT;
  2982.         aRecord:                RecordIDPtr;                            {   -> RecordID to which access control list is sought list is sought   }
  2983.         bReserved:                LONGINT;                                {   -- unused  }
  2984.         cReserved:                LONGINT;                                {   -- unused  }
  2985.         dReserved:                LONGINT;                                {   -- unused  }
  2986.         eResreved:                LONGINT;                                {  -->  }
  2987.         forCurrentUserOnly:        BOOLEAN;                                {  -->   }
  2988.         filler1:                BOOLEAN;
  2989.         startingPoint:            DSSpecPtr;                                {  --> starting Point  }
  2990.         includeStartingPoint:    BOOLEAN;                                {  --> if true return the record specified in starting point  }
  2991.         filler2:                BOOLEAN;
  2992.         getBuffer:                Ptr;                                    {     ->  }
  2993.         getBufferSize:            LONGINT;                                {   ->  }
  2994.     END;
  2995.  
  2996. {  The Access Control call-back function is defined as follows:  }
  2997.     ForEachRecordAccessControlProcPtr = ProcPtr;  { FUNCTION ForEachRecordAccessControl(clientData: LONGINT; (CONST)VAR dsObj: DSSpec; activeDnodeAccMask: AccessMask; activeRecordAccMask: AccessMask; defaultAttributeAccMask: AccessMask): BOOLEAN; }
  2998.  
  2999.     ForEachRecordAccessControlUPP = UniversalProcPtr;
  3000.     ForEachRecordAccessControl            = ForEachRecordAccessControlUPP;
  3001. {
  3002.     GetRecordAccessControlParse:
  3003.     After an GetRecordAccessControlGet call has completed, 
  3004.     call GetRecordAccessControlParse to parse through the buffer that
  3005.     that was filled in GetRecordAccessControlGet.
  3006.     
  3007.     'eachObject' will be called each time to return to the client a
  3008.     DsObject and a set of three accMasks (three long words) for that object.
  3009.     Acceesmasks returned apply to the dsObject in the callback :
  3010.     1. Active Access mask for the DNode Containing the Record.
  3011.     2. Active Access mask for the Record specified.
  3012.     3. Defualt Access mask for Attributes in the record.
  3013.     The clientData parameter that you pass in the parameter block will be passed
  3014.     to 'eachObject'.  You are free to put anything in clientData - it is intended
  3015.     to allow you some way to match the call-back to the original call (for
  3016.     example, you make more then one aysynchronous GetRecordAccessControlGet calls and you want to
  3017.     associate returned results in some way).
  3018.     
  3019.     The client should return FALSE from 'eachObject' to continue
  3020.     processing of the GetRecordAccessControlParse request.  Returning TRUE will
  3021.     terminate the GetRecordAccessControlParse request.
  3022.  
  3023.     For synchronous calls, the call-back routine actually runs as part of the same thread 
  3024.     of execution as the thread that made the GetRecordAccessControlParse call.  That means that the
  3025.     same low-memory globals, A5, stack, etc. are in effect during the call-back
  3026.     that were in effect when the call was made.  Because of this, the call-back
  3027.     routine has the same restrictions as the caller of GetRecordAccessControlParse:
  3028.     if GetRecordAccessControlParse was not called from interrupt level, then the call-
  3029.     back routine can allocate memory. For asynchronous calls, call-back routine is
  3030.     like a ioCompletion except that A5 will be preserved for the application.
  3031.  
  3032.  
  3033. }
  3034.     DirGetRecordAccessControlParsePBPtr = ^DirGetRecordAccessControlParsePB;
  3035.     DirGetRecordAccessControlParsePB = RECORD
  3036.         qLink:                    Ptr;
  3037.         reserved1:                LONGINT;
  3038.         reserved2:                LONGINT;
  3039.         ioCompletion:            DirIOCompletionUPP;
  3040.         ioResult:                OSErr;
  3041.         saveA5:                    LONGINT;
  3042.         reqCode:                INTEGER;
  3043.         reserved:                ARRAY [0..1] OF LONGINT;
  3044.         serverHint:                AddrBlock;
  3045.         dsRefNum:                INTEGER;
  3046.         callID:                    LONGINT;
  3047.         identity:                AuthIdentity;
  3048.         gReserved1:                LONGINT;
  3049.         gReserved2:                LONGINT;
  3050.         gReserved3:                LONGINT;
  3051.         clientData:                LONGINT;
  3052.         aRecord:                RecordIDPtr;                            {   -> RecordID to which access control list is sought list is sought   }
  3053.         bReserved:                LONGINT;                                {   -- unused  }
  3054.         cReserved:                LONGINT;                                {   -- unused  }
  3055.         dReserved:                LONGINT;                                {   -- unused  }
  3056.         eachObject:                ForEachRecordAccessControl;                {  -->  }
  3057.         forCurrentUserOnly:        BOOLEAN;                                {  -->   }
  3058.         filler1:                BOOLEAN;
  3059.         startingPoint:            DSSpecPtr;                                {  --> starting Point  }
  3060.         includeStartingPoint:    BOOLEAN;                                {  --> if true return the record specified in starting point  }
  3061.         filler2:                BOOLEAN;
  3062.         getBuffer:                Ptr;                                    {     ->  }
  3063.         getBufferSize:            LONGINT;                                {   ->  }
  3064.     END;
  3065.  
  3066. {
  3067.     GetAttributeAccessControlGet:
  3068.     This call can be done to get back access control list for a attributeType with in a RecordID.
  3069.     aRecord -> RecordID to which access control list is sought
  3070.     aType    -> Attribute Type to which access controls are sought
  3071.     curUserAccMask -> If this is 'true', Access controls for the user specified by
  3072.                       the identity parameter will be returned other wise entire list
  3073.                       will be returned.
  3074.     startingDsObj  -> If this is not nil, list should be started after this object.
  3075.     startingPointInclusive -> If staringDsObj is specified, include that in the returned
  3076.                               results.
  3077.                               
  3078.     The results will be collected in the 'getBuffer' supplied by the user.
  3079.     If buffer can not hold all the data returned 'daMoreData' error will be returned.
  3080.      
  3081.     If user receives 'noErr' or 'daMoreData', buffer will contain valid results. A user
  3082.     can extract the results in the 'getBuffer' by making 'DsGetDNodeAccessControlParse' call.
  3083.     
  3084.     Results returned for each DSObject will contain DSSpecPtr and accMask. 
  3085.  
  3086. }
  3087.     DirGetAttributeAccessControlGetPBPtr = ^DirGetAttributeAccessControlGetPB;
  3088.     DirGetAttributeAccessControlGetPB = RECORD
  3089.         qLink:                    Ptr;
  3090.         reserved1:                LONGINT;
  3091.         reserved2:                LONGINT;
  3092.         ioCompletion:            DirIOCompletionUPP;
  3093.         ioResult:                OSErr;
  3094.         saveA5:                    LONGINT;
  3095.         reqCode:                INTEGER;
  3096.         reserved:                ARRAY [0..1] OF LONGINT;
  3097.         serverHint:                AddrBlock;
  3098.         dsRefNum:                INTEGER;
  3099.         callID:                    LONGINT;
  3100.         identity:                AuthIdentity;
  3101.         gReserved1:                LONGINT;
  3102.         gReserved2:                LONGINT;
  3103.         gReserved3:                LONGINT;
  3104.         clientData:                LONGINT;
  3105.         aRecord:                RecordIDPtr;                            {   -> RecordID to which access control list is sought list is sought   }
  3106.         aType:                    AttributeTypePtr;                        {   -> Attribute Type to which access controls are sought           }
  3107.         cReserved:                LONGINT;                                {   -- unused  }
  3108.         dReserved:                LONGINT;                                {   -- unused  }
  3109.         eResreved:                LONGINT;                                {  -->  }
  3110.         forCurrentUserOnly:        BOOLEAN;                                {  -->   }
  3111.         filler1:                BOOLEAN;
  3112.         startingPoint:            DSSpecPtr;                                {  --> starting Point  }
  3113.         includeStartingPoint:    BOOLEAN;                                {  --> if true return the record specified in starting point  }
  3114.         filler2:                BOOLEAN;
  3115.         getBuffer:                Ptr;                                    {     ->  }
  3116.         getBufferSize:            LONGINT;                                {   ->  }
  3117.     END;
  3118.  
  3119. {  The Access Control call-back function is defined as follows:  }
  3120.     ForEachAttributeAccessControlProcPtr = ProcPtr;  { FUNCTION ForEachAttributeAccessControl(clientData: LONGINT; (CONST)VAR dsObj: DSSpec; activeDnodeAccMask: AccessMask; activeRecordAccMask: AccessMask; activeAttributeAccMask: AccessMask): BOOLEAN; }
  3121.  
  3122.     ForEachAttributeAccessControlUPP = UniversalProcPtr;
  3123.     ForEachAttributeAccessControl        = ForEachAttributeAccessControlUPP;
  3124. {
  3125.     GetAttributeAccessControlParse:
  3126.     After an GetAttributeAccessControlGet call has completed, 
  3127.     call GetAttributeAccessControlParse to parse through the buffer that
  3128.     that was filled in GetAttributeAccessControlGet.
  3129.     
  3130.     'eachObject' will be called each time to return to the client a
  3131.     DsObject and a set of three accMasks (three long words) for that object.
  3132.     Acceesmasks returned apply to the dsObject in the callback :
  3133.     1. Active Access mask for the DNode Containing the Attribute.
  3134.     2. Active Access mask for the Record in the Containing the Attribute.
  3135.     3. Active Access mask for the specified Attribute.
  3136.     The clientData parameter that you pass in the parameter block will be passed
  3137.     to 'eachObject'.  You are free to put anything in clientData - it is intended
  3138.     to allow you some way to match the call-back to the original call (for
  3139.     example, you make more then one aysynchronous GetAttributeAccessControlGet calls and you want to
  3140.     associate returned results in some way).
  3141.     
  3142.     The client should return FALSE from 'eachObject' to continue
  3143.     processing of the GetAttributeAccessControlParse request.  Returning TRUE will
  3144.     terminate the GetAttributeAccessControlParse request.
  3145.  
  3146.     For synchronous calls, the call-back routine actually runs as part of the same thread 
  3147.     of execution as the thread that made the GetAttributeAccessControlParse call.  That means that the
  3148.     same low-memory globals, A5, stack, etc. are in effect during the call-back
  3149.     that were in effect when the call was made.  Because of this, the call-back
  3150.     routine has the same restrictions as the caller of GetAttributeAccessControlParse:
  3151.     if GetAttributeAccessControlParse was not called from interrupt level, then the call-
  3152.     back routine can allocate memory. For asynchronous calls, call-back routine is
  3153.     like a ioCompletion except that A5 will be preserved for the application.
  3154.  
  3155.  
  3156. }
  3157.     DirGetAttributeAccessControlParsePBPtr = ^DirGetAttributeAccessControlParsePB;
  3158.     DirGetAttributeAccessControlParsePB = RECORD
  3159.         qLink:                    Ptr;
  3160.         reserved1:                LONGINT;
  3161.         reserved2:                LONGINT;
  3162.         ioCompletion:            DirIOCompletionUPP;
  3163.         ioResult:                OSErr;
  3164.         saveA5:                    LONGINT;
  3165.         reqCode:                INTEGER;
  3166.         reserved:                ARRAY [0..1] OF LONGINT;
  3167.         serverHint:                AddrBlock;
  3168.         dsRefNum:                INTEGER;
  3169.         callID:                    LONGINT;
  3170.         identity:                AuthIdentity;
  3171.         gReserved1:                LONGINT;
  3172.         gReserved2:                LONGINT;
  3173.         gReserved3:                LONGINT;
  3174.         clientData:                LONGINT;
  3175.         aRecord:                RecordIDPtr;                            {   -> RecordID to which access control list is sought list is sought   }
  3176.         aType:                    AttributeTypePtr;                        {   -> Attribute Type to which access controls are sought           }
  3177.         cReserved:                LONGINT;                                {   -- unused  }
  3178.         dReserved:                LONGINT;                                {   -- unused  }
  3179.         eachObject:                ForEachAttributeAccessControl;            {  -->  }
  3180.         forCurrentUserOnly:        BOOLEAN;                                {  -->   }
  3181.         filler1:                BOOLEAN;
  3182.         startingPoint:            DSSpecPtr;                                {  --> starting Point  }
  3183.         includeStartingPoint:    BOOLEAN;                                {  --> if true return the record specified in starting point  }
  3184.         filler2:                BOOLEAN;
  3185.         getBuffer:                Ptr;                                    {     ->  }
  3186.         getBufferSize:            LONGINT;                                {   ->  }
  3187.     END;
  3188.  
  3189. {
  3190. MapPathNameToDNodeNumber:
  3191. This call maps a given PathName within a catalog to its DNodeNumber.
  3192. }
  3193.     DirMapPathNameToDNodeNumberPBPtr = ^DirMapPathNameToDNodeNumberPB;
  3194.     DirMapPathNameToDNodeNumberPB = RECORD
  3195.         qLink:                    Ptr;
  3196.         reserved1:                LONGINT;
  3197.         reserved2:                LONGINT;
  3198.         ioCompletion:            DirIOCompletionUPP;
  3199.         ioResult:                OSErr;
  3200.         saveA5:                    LONGINT;
  3201.         reqCode:                INTEGER;
  3202.         reserved:                ARRAY [0..1] OF LONGINT;
  3203.         serverHint:                AddrBlock;
  3204.         dsRefNum:                INTEGER;
  3205.         callID:                    LONGINT;
  3206.         identity:                AuthIdentity;
  3207.         gReserved1:                LONGINT;
  3208.         gReserved2:                LONGINT;
  3209.         gReserved3:                LONGINT;
  3210.         clientData:                LONGINT;
  3211.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  3212.         discriminator:            DirDiscriminator;                        {   --> discriminator  }
  3213.         dNodeNumber:            DNodeNum;                                {  <--  dNodenumber to the path  }
  3214.         path:                    PackedPathNamePtr;                        {   --> Path Name to be mapped  }
  3215.     END;
  3216.  
  3217. {
  3218. PathName in the path field will be mapped to the cooresponding dNodeNumber and
  3219. returned in the DNodeNumber field. directoryName and descriminator Fields are
  3220. ignored. DSRefNum is used to identify the catalog.
  3221. }
  3222. {
  3223. MapDNodeNumberToPathName:
  3224. This call will map a given DNodeNumber with in a catalog to the
  3225. corresponding PathName.
  3226. }
  3227.     DirMapDNodeNumberToPathNamePBPtr = ^DirMapDNodeNumberToPathNamePB;
  3228.     DirMapDNodeNumberToPathNamePB = RECORD
  3229.         qLink:                    Ptr;
  3230.         reserved1:                LONGINT;
  3231.         reserved2:                LONGINT;
  3232.         ioCompletion:            DirIOCompletionUPP;
  3233.         ioResult:                OSErr;
  3234.         saveA5:                    LONGINT;
  3235.         reqCode:                INTEGER;
  3236.         reserved:                ARRAY [0..1] OF LONGINT;
  3237.         serverHint:                AddrBlock;
  3238.         dsRefNum:                INTEGER;
  3239.         callID:                    LONGINT;
  3240.         identity:                AuthIdentity;
  3241.         gReserved1:                LONGINT;
  3242.         gReserved2:                LONGINT;
  3243.         gReserved3:                LONGINT;
  3244.         clientData:                LONGINT;
  3245.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  3246.         discriminator:            DirDiscriminator;                        {   --> discriminator  }
  3247.         dNodeNumber:            DNodeNum;                                {   --> dNodenumber to be mapped  }
  3248.         path:                    PackedPathNamePtr;                        {  <--  Packed Path Name returned  }
  3249.         lengthOfPathName:        INTEGER;                                {   --> length of packed pathName structure }
  3250.     END;
  3251.  
  3252. {
  3253. dNodeNumber in the DNodeNumber field will be mapped to the cooresponding
  3254. pathName and returned in the PackedPathName field.
  3255. lengthOfPathName is to be set the length of pathName structure.
  3256. If length of PackedPathName is larger then the lengthOfPathName, kOCEMoreData
  3257. OSErr will be returned.
  3258. }
  3259. {
  3260. GetLocalNetworkSpec:
  3261. This call will return the Local NetworkSpec. Client should supply
  3262. an RString big enough to hold the NetworkSpec.
  3263. }
  3264.     DirGetLocalNetworkSpecPBPtr = ^DirGetLocalNetworkSpecPB;
  3265.     DirGetLocalNetworkSpecPB = RECORD
  3266.         qLink:                    Ptr;
  3267.         reserved1:                LONGINT;
  3268.         reserved2:                LONGINT;
  3269.         ioCompletion:            DirIOCompletionUPP;
  3270.         ioResult:                OSErr;
  3271.         saveA5:                    LONGINT;
  3272.         reqCode:                INTEGER;
  3273.         reserved:                ARRAY [0..1] OF LONGINT;
  3274.         serverHint:                AddrBlock;
  3275.         dsRefNum:                INTEGER;
  3276.         callID:                    LONGINT;
  3277.         identity:                AuthIdentity;
  3278.         gReserved1:                LONGINT;
  3279.         gReserved2:                LONGINT;
  3280.         gReserved3:                LONGINT;
  3281.         clientData:                LONGINT;
  3282.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  3283.         discriminator:            DirDiscriminator;                        {   --> discriminator  }
  3284.         networkSpec:            NetworkSpecPtr;                            {  <--  NetworkSpec  }
  3285.     END;
  3286.  
  3287. {
  3288. PathName in the path field must be set to nil. internetName should be large
  3289. enough to hold the internetName. InterNetname returned indicates path finder's
  3290. local internet (configured by administrator).
  3291. }
  3292. {
  3293. GetDNodeInfo:
  3294. This call will return the information (internetName and descriptor)
  3295. for the given RLI of a DNode.
  3296. }
  3297.     DirGetDNodeInfoPBPtr = ^DirGetDNodeInfoPB;
  3298.     DirGetDNodeInfoPB = RECORD
  3299.         qLink:                    Ptr;
  3300.         reserved1:                LONGINT;
  3301.         reserved2:                LONGINT;
  3302.         ioCompletion:            DirIOCompletionUPP;
  3303.         ioResult:                OSErr;
  3304.         saveA5:                    LONGINT;
  3305.         reqCode:                INTEGER;
  3306.         reserved:                ARRAY [0..1] OF LONGINT;
  3307.         serverHint:                AddrBlock;
  3308.         dsRefNum:                INTEGER;
  3309.         callID:                    LONGINT;
  3310.         identity:                AuthIdentity;
  3311.         gReserved1:                LONGINT;
  3312.         gReserved2:                LONGINT;
  3313.         gReserved3:                LONGINT;
  3314.         clientData:                LONGINT;
  3315.         pRLI:                    PackedRLIPtr;                            {   --> packed RLI whose info is requested  }
  3316.         descriptor:                DirNodeKind;                            {  <--  dNode descriptor  }
  3317.         networkSpec:            NetworkSpecPtr;                            {  <--  cluster's networkSpec if kIsCluster  }
  3318.     END;
  3319.  
  3320. {
  3321. If DnodeNumber is set to a non zero value, path should be set to nil.
  3322. if DnodeNumber is set to zero, pathName should point to a packed path name.
  3323. internetName should be large enough to hold
  3324. the internetName. (If the internetName is same as the one got by
  3325. GetLocalInternetName call, it indicates cluster is reachable  without
  3326. forwarders, --> Tell me if I am wrong)
  3327. }
  3328. {
  3329. DirCreatePersonalDirectory:
  3330. A new  personal catalog can be created by specifying an FSSpec for
  3331. the file. If a file already exists dupFNErr will be returned. This call is
  3332. supported 'synchronous' mode only.
  3333. }
  3334.     DirCreatePersonalDirectoryPBPtr = ^DirCreatePersonalDirectoryPB;
  3335.     DirCreatePersonalDirectoryPB = RECORD
  3336.         qLink:                    Ptr;
  3337.         reserved1:                LONGINT;
  3338.         reserved2:                LONGINT;
  3339.         ioCompletion:            DirIOCompletionUPP;
  3340.         ioResult:                OSErr;
  3341.         saveA5:                    LONGINT;
  3342.         reqCode:                INTEGER;
  3343.         reserved:                ARRAY [0..1] OF LONGINT;
  3344.         serverHint:                AddrBlock;
  3345.         dsRefNum:                INTEGER;
  3346.         callID:                    LONGINT;
  3347.         identity:                AuthIdentity;
  3348.         gReserved1:                LONGINT;
  3349.         gReserved2:                LONGINT;
  3350.         gReserved3:                LONGINT;
  3351.         clientData:                LONGINT;
  3352.         fsSpec:                    FSSpecPtr;                                {   --> FSSpec for the Personal Catalog  }
  3353.         fdType:                    OSType;                                    {   --> file type for the Personal Catalog  }
  3354.         fdCreator:                OSType;                                    {   --> file creator for the Personal Catalog  }
  3355.     END;
  3356.  
  3357. {
  3358. DirOpenPersonalDirectory:
  3359. An existing personal catalog can be opened using this call.
  3360. User can specify the personal catalog by FSSpec for the AddressBook file.
  3361. 'accessRequested' field specifies open permissions. 'fsRdPerm'  & 'fsRdWrPerm'
  3362. are the only accepted open modes for the address book.
  3363. When the call completes successfully, a dsRefNum will be returned. The 'dsRefNum'
  3364. field is in the DSParamBlockHeader. In addittion 'accessGranted' indicates
  3365. actual permission with personal catalog is opened and 'features' indicate the capabilty flags
  3366. associated with the personal catalog.
  3367. This call is supported 'synchronous' mode only.
  3368. }
  3369.     DirOpenPersonalDirectoryPBPtr = ^DirOpenPersonalDirectoryPB;
  3370.     DirOpenPersonalDirectoryPB = RECORD
  3371.         qLink:                    Ptr;
  3372.         reserved1:                LONGINT;
  3373.         reserved2:                LONGINT;
  3374.         ioCompletion:            DirIOCompletionUPP;
  3375.         ioResult:                OSErr;
  3376.         saveA5:                    LONGINT;
  3377.         reqCode:                INTEGER;
  3378.         reserved:                ARRAY [0..1] OF LONGINT;
  3379.         serverHint:                AddrBlock;
  3380.         dsRefNum:                INTEGER;
  3381.         callID:                    LONGINT;
  3382.         identity:                AuthIdentity;
  3383.         gReserved1:                LONGINT;
  3384.         gReserved2:                LONGINT;
  3385.         gReserved3:                LONGINT;
  3386.         clientData:                LONGINT;
  3387.         fsSpec:                    FSSpecPtr;                                {   --> Open an existing Personal Catalog  }
  3388.         accessRequested:        SInt8;                                    {   --> Open: permissions Requested(byte) }
  3389.         accessGranted:            SInt8;                                    {   <-- Open: permissions (byte) (Granted) }
  3390.         features:                DirGestalt;                                {  <--  features for Personal Catalog  }
  3391.     END;
  3392.  
  3393. {
  3394. DirClosePersonalDirectory: This call lets a client close AddressBook opened by DirOpenPersonalDirectory.
  3395. The Personal Catalog specified by the 'dsRefNum' will be closed.
  3396. This call is supported 'synchronous' mode only.
  3397. }
  3398.     DirClosePersonalDirectoryPBPtr = ^DirClosePersonalDirectoryPB;
  3399.     DirClosePersonalDirectoryPB = RECORD
  3400.         qLink:                    Ptr;
  3401.         reserved1:                LONGINT;
  3402.         reserved2:                LONGINT;
  3403.         ioCompletion:            DirIOCompletionUPP;
  3404.         ioResult:                OSErr;
  3405.         saveA5:                    LONGINT;
  3406.         reqCode:                INTEGER;
  3407.         reserved:                ARRAY [0..1] OF LONGINT;
  3408.         serverHint:                AddrBlock;
  3409.         dsRefNum:                INTEGER;
  3410.         callID:                    LONGINT;
  3411.         identity:                AuthIdentity;
  3412.         gReserved1:                LONGINT;
  3413.         gReserved2:                LONGINT;
  3414.         gReserved3:                LONGINT;
  3415.         clientData:                LONGINT;
  3416.     END;
  3417.  
  3418. {
  3419. DirMakePersonalDirectoryRLI: With this call a client can make an RLI
  3420. for a Personal Catalog opened by DirOpenPersonalDirectory Call.
  3421. A packed RLI is created for the Personal Catalog specified by the 'dsRefNum'.
  3422. If a client has a need to make the AddressBook reference to persistent
  3423. acrross boots it should make use of this call. In the current implementaion
  3424. PackedRLI has an embeeded System7.0 'alias'. If in later time
  3425. If client has a need to make reference to the AddressBook, it must use
  3426. ADAPLibrary call 'DUExtractAlias' and resole the 'alias' to 'FSSpec' and
  3427. make DirOpenPersonalDirectory call to get a 'dsRefNum'.
  3428.   'fromFSSpec'            FSPecPtr from which relative alias to be created. If nil,
  3429.                         absolute alias is created.
  3430.  'pRLIBufferSize' indicates the size of buffer pointed by 'pRLI'
  3431.  'pRLISize'    indicates the actual length of 'pRLI'. If the call
  3432.                         fails with 'kOCEMoreData' error a client can reissue
  3433.                     this call with a larger buffer of this length.
  3434.   'pRLI' is pointer to the buffer in which 'PackedRLI' is
  3435.   returned.
  3436. This call is supported in 'synchronous' mode only.
  3437. }
  3438.     DirMakePersonalDirectoryRLIPBPtr = ^DirMakePersonalDirectoryRLIPB;
  3439.     DirMakePersonalDirectoryRLIPB = RECORD
  3440.         qLink:                    Ptr;
  3441.         reserved1:                LONGINT;
  3442.         reserved2:                LONGINT;
  3443.         ioCompletion:            DirIOCompletionUPP;
  3444.         ioResult:                OSErr;
  3445.         saveA5:                    LONGINT;
  3446.         reqCode:                INTEGER;
  3447.         reserved:                ARRAY [0..1] OF LONGINT;
  3448.         serverHint:                AddrBlock;
  3449.         dsRefNum:                INTEGER;
  3450.         callID:                    LONGINT;
  3451.         identity:                AuthIdentity;
  3452.         gReserved1:                LONGINT;
  3453.         gReserved2:                LONGINT;
  3454.         gReserved3:                LONGINT;
  3455.         clientData:                LONGINT;
  3456.         fromFSSpec:                FSSpecPtr;                                {   --> FSSpec for creating relative alia  }
  3457.         pRLIBufferSize:            INTEGER;                                {   --> Length of 'pRLI' buffer  }
  3458.         pRLISize:                INTEGER;                                {  <--  Length of actual 'pRLI'  }
  3459.         pRLI:                    PackedRLIPtr;                            {  <--  pRLI for the specified AddressBook  }
  3460.     END;
  3461.  
  3462. {
  3463. ****************************************************************************
  3464. The calls described below apply only for CSAM Drivers:
  3465.  
  3466. The following three calls provide capability to Install/Remove a CSAM at RunTime.
  3467.     DirAddDSAM
  3468.     DirRemoveDSAM
  3469.     DirInstantiateDSAM
  3470.  
  3471. The following two calls provide capability to Install/Remove a CSAM Catalog at RunTime.
  3472.     DirAddDSAMDirectory
  3473.     DirRemoveDirectory
  3474.  
  3475. DirGetDirectoryIcon call is used by clients to get any special icon associated
  3476. with a CSAM catalog.
  3477.  
  3478. ****************************************************************************
  3479. }
  3480. {
  3481. DirAddDSAM: This call can be used to inorm the availability of a CSAM file
  3482. after discovering the CSAM file.
  3483.     dsamName -> is generic CSAM name e.g. Untitled X.500 directory
  3484.     dsamSignature -> could be generic CSAM kind e.g. 'X500'.
  3485.     fsSpec -> is the FileSpec for the file containing CSAM resources.
  3486. If the call is successfull 'DSAMRecordCID' will be returned. If the
  3487. call returns 'daDSAMRecordCIDExists', record was already there and
  3488. 'dsamRecordCID' will be returned.
  3489. This call can be done only in synchronous mode.
  3490. }
  3491.     DirAddDSAMPBPtr = ^DirAddDSAMPB;
  3492.     DirAddDSAMPB = RECORD
  3493.         qLink:                    Ptr;
  3494.         reserved1:                LONGINT;
  3495.         reserved2:                LONGINT;
  3496.         ioCompletion:            DirIOCompletionUPP;
  3497.         ioResult:                OSErr;
  3498.         saveA5:                    LONGINT;
  3499.         reqCode:                INTEGER;
  3500.         reserved:                ARRAY [0..1] OF LONGINT;
  3501.         serverHint:                AddrBlock;
  3502.         dsRefNum:                INTEGER;
  3503.         callID:                    LONGINT;
  3504.         identity:                AuthIdentity;
  3505.         gReserved1:                LONGINT;
  3506.         gReserved2:                LONGINT;
  3507.         gReserved3:                LONGINT;
  3508.         clientData:                LONGINT;
  3509.         dsamRecordCID:            CreationID;                                {  <--  CreationID for the CSAM record  }
  3510.         dsamName:                RStringPtr;                                {   --> CSAM name  }
  3511.         dsamKind:                OCEDirectoryKind;                        {   --> CSAM kind  }
  3512.         fsSpec:                    FSSpecPtr;                                {   --> FSSpec for the file containing CSAM  }
  3513.     END;
  3514.  
  3515. {
  3516. DirInstantiateDSAM: This call should be used by the CSAM driver in response
  3517. Driver Open call to indicate the toolbox about the availability of the CSAM.
  3518.     dsamName -> is generic CSAM name e.g. Untitled X.500 directory
  3519.     dsamKind -> could be generic CSAM kind e.g. 'X500'.
  3520.     dsamData -> pointer to private DSAMData. This will be paased back to the CSAM
  3521.     when the CSAM functions (DSAMDirProc,DSAMDirParseProc, DSAMAuthProc) are called.
  3522.     CSAM should already be setup using DirAddDSAM call.
  3523.     DSAMDirProc -> This procedure will be called when  any catalog service
  3524.     call intended for the CSAM (other then parse calls)
  3525.     DSAMDirParseProc -> This procedure will be called when any of the parse calls
  3526.     are called.
  3527.     DSAMAuthProc -> This procedure will be called when any of the Authentication Calls
  3528.     are made to the CSAM. If the CSAM does not support authentication, this can be nil.
  3529. This call can be done only in synchronous mode.
  3530. }
  3531.     DSAMDirProcPtr = ProcPtr;  { FUNCTION DSAMDir(dsamData: UNIV Ptr; paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr; }
  3532.  
  3533.     DSAMDirUPP = UniversalProcPtr;
  3534.     DSAMDirProc                            = DSAMDirUPP;
  3535.     DSAMDirParseProcPtr = ProcPtr;  { FUNCTION DSAMDirParse(dsamData: UNIV Ptr; paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr; }
  3536.  
  3537.     DSAMDirParseUPP = UniversalProcPtr;
  3538.     DSAMDirParseProc                    = DSAMDirParseUPP;
  3539.     DSAMAuthProcPtr = ProcPtr;  { FUNCTION DSAMAuth(dsamData: UNIV Ptr; pb: AuthParamBlockPtr; async: BOOLEAN): OSErr; }
  3540.  
  3541.     DSAMAuthUPP = UniversalProcPtr;
  3542.     DSAMAuthProc                        = DSAMAuthUPP;
  3543.     DirInstantiateDSAMPBPtr = ^DirInstantiateDSAMPB;
  3544.     DirInstantiateDSAMPB = RECORD
  3545.         qLink:                    Ptr;
  3546.         reserved1:                LONGINT;
  3547.         reserved2:                LONGINT;
  3548.         ioCompletion:            DirIOCompletionUPP;
  3549.         ioResult:                OSErr;
  3550.         saveA5:                    LONGINT;
  3551.         reqCode:                INTEGER;
  3552.         reserved:                ARRAY [0..1] OF LONGINT;
  3553.         serverHint:                AddrBlock;
  3554.         dsRefNum:                INTEGER;
  3555.         callID:                    LONGINT;
  3556.         identity:                AuthIdentity;
  3557.         gReserved1:                LONGINT;
  3558.         gReserved2:                LONGINT;
  3559.         gReserved3:                LONGINT;
  3560.         clientData:                LONGINT;
  3561.         dsamName:                RStringPtr;                                {   --> dsamName name  }
  3562.         dsamKind:                OCEDirectoryKind;                        {   --> DSAMKind  }
  3563.         dsamData:                Ptr;                                    {   --> dsamData   }
  3564.         dsamDirProc:            DSAMDirUPP;                                {   --> of type DSAMDirProc: for catalog service calls  }
  3565.         dsamDirParseProc:        DSAMDirParseUPP;                        {   --> of type DSAMDirParseProc: for catalog service parse calls  }
  3566.         dsamAuthProc:            DSAMAuthUPP;                            {   --> of type DSAMAuthProc: for authetication service calls  }
  3567.     END;
  3568.  
  3569. {
  3570. DirRemoveDSAM: This call can be used to remove  a CSAM file from the OCE Setup.
  3571.     dsamRecordCID -> is the creationID of the CSAM record.
  3572. This call can be made only in synchronous mode.
  3573. }
  3574.     DirRemoveDSAMPBPtr = ^DirRemoveDSAMPB;
  3575.     DirRemoveDSAMPB = RECORD
  3576.         qLink:                    Ptr;
  3577.         reserved1:                LONGINT;
  3578.         reserved2:                LONGINT;
  3579.         ioCompletion:            DirIOCompletionUPP;
  3580.         ioResult:                OSErr;
  3581.         saveA5:                    LONGINT;
  3582.         reqCode:                INTEGER;
  3583.         reserved:                ARRAY [0..1] OF LONGINT;
  3584.         serverHint:                AddrBlock;
  3585.         dsRefNum:                INTEGER;
  3586.         callID:                    LONGINT;
  3587.         identity:                AuthIdentity;
  3588.         gReserved1:                LONGINT;
  3589.         gReserved2:                LONGINT;
  3590.         gReserved3:                LONGINT;
  3591.         clientData:                LONGINT;
  3592.         dsamRecordCID:            CreationID;                                {  <--  CreationID for the CSAM record  }
  3593.     END;
  3594.  
  3595. {
  3596. DirAddDSAMDirectory: This call can be used to inorm the availability of a CSAM catalog.
  3597.     dsamRecordCID ->  recordID for the CSAM serving this catalog
  3598.     directoryName ->  name of the catalog
  3599.     discriminator -> discriminator for the catalog
  3600.     directoryRecordCID -> If the call is successful, creationID for the record will
  3601.                             be returned.
  3602. }
  3603.     DirAddDSAMDirectoryPBPtr = ^DirAddDSAMDirectoryPB;
  3604.     DirAddDSAMDirectoryPB = RECORD
  3605.         qLink:                    Ptr;
  3606.         reserved1:                LONGINT;
  3607.         reserved2:                LONGINT;
  3608.         ioCompletion:            DirIOCompletionUPP;
  3609.         ioResult:                OSErr;
  3610.         saveA5:                    LONGINT;
  3611.         reqCode:                INTEGER;
  3612.         reserved:                ARRAY [0..1] OF LONGINT;
  3613.         serverHint:                AddrBlock;
  3614.         dsRefNum:                INTEGER;
  3615.         callID:                    LONGINT;
  3616.         identity:                AuthIdentity;
  3617.         gReserved1:                LONGINT;
  3618.         gReserved2:                LONGINT;
  3619.         gReserved3:                LONGINT;
  3620.         clientData:                LONGINT;
  3621.         dsamRecordCID:            CreationID;                                {   --> CreationID for the CSAM record  }
  3622.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  3623.         discriminator:            DirDiscriminator;                        {   --> catalog discriminator  }
  3624.         features:                DirGestalt;                                {   --> capabilty flags for the catalog  }
  3625.         directoryRecordCID:        CreationID;                                {  <--  creationID for the catalog record  }
  3626.     END;
  3627.  
  3628. {
  3629. DirRemoveDirectory: This call can be used to inform the toolbox that
  3630. catalog specified by 'directoryRecordCID'
  3631. }
  3632.     DirRemoveDirectoryPBPtr = ^DirRemoveDirectoryPB;
  3633.     DirRemoveDirectoryPB = RECORD
  3634.         qLink:                    Ptr;
  3635.         reserved1:                LONGINT;
  3636.         reserved2:                LONGINT;
  3637.         ioCompletion:            DirIOCompletionUPP;
  3638.         ioResult:                OSErr;
  3639.         saveA5:                    LONGINT;
  3640.         reqCode:                INTEGER;
  3641.         reserved:                ARRAY [0..1] OF LONGINT;
  3642.         serverHint:                AddrBlock;
  3643.         dsRefNum:                INTEGER;
  3644.         callID:                    LONGINT;
  3645.         identity:                AuthIdentity;
  3646.         gReserved1:                LONGINT;
  3647.         gReserved2:                LONGINT;
  3648.         gReserved3:                LONGINT;
  3649.         clientData:                LONGINT;
  3650.         directoryRecordCID:        CreationID;                                {   --> creationID for the catalog record  }
  3651.     END;
  3652.  
  3653. {
  3654.  * DSGetExtendedDirectoriesInfo::  This call can be used to get
  3655.  * the information of various foreign catalogs supported.
  3656.  * Typically a DE Template  may make this call to create a
  3657.  * Address template or a Gateway may make this call to findout
  3658.  * catalog name space in which MSAM may would support. 
  3659.  * Client will supply a buffer pointed by 'bufferPtr' of size 'bufferLength'. 
  3660.  * When the call completes with 'daMoreData' error, client can examine 'totalEntries'
  3661.  * returned and reissue the call with increaing buffer.
  3662.  * Toolbox will findout the private information of each of the Foreign Catalogs
  3663.  * by polling CSAM's, Gateways, and MnMServers. The Information returned
  3664.  * for each catalog will be packed in the format: 
  3665.  * typedef struct EachDirectoryData (
  3666.  *  PackedRLI                        pRLI;           //  packed RLI for the catalog
  3667.  *  OSType                            entnType;        //  Entn Type
  3668.  *  long                            hasMailSlot;   //  If this catalog has mail slot this will be 1 otherwise zero
  3669.  *    ProtoRString                    RealName;      //  Packed RString for Real Name (padded to even boundary) 
  3670.  *    ProtoRString                    comment;       //  Packed RString holding any comment for Display (padded to even boundary)
  3671.  *    long                            length;        //  data length
  3672.  *    char                            data[length];  //  data padded to even boundary
  3673.  * );
  3674.  *
  3675.  *
  3676.  *
  3677.  * typedef struct myData (
  3678.  *      EachDirectoryData    data[numberOfEntries];    // data packed in the above format
  3679.  *    );
  3680.  *
  3681. }
  3682.     DirGetExtendedDirectoriesInfoPBPtr = ^DirGetExtendedDirectoriesInfoPB;
  3683.     DirGetExtendedDirectoriesInfoPB = RECORD
  3684.         qLink:                    Ptr;
  3685.         reserved1:                LONGINT;
  3686.         reserved2:                LONGINT;
  3687.         ioCompletion:            DirIOCompletionUPP;
  3688.         ioResult:                OSErr;
  3689.         saveA5:                    LONGINT;
  3690.         reqCode:                INTEGER;
  3691.         reserved:                ARRAY [0..1] OF LONGINT;
  3692.         serverHint:                AddrBlock;
  3693.         dsRefNum:                INTEGER;
  3694.         callID:                    LONGINT;
  3695.         identity:                AuthIdentity;
  3696.         gReserved1:                LONGINT;
  3697.         gReserved2:                LONGINT;
  3698.         gReserved3:                LONGINT;
  3699.         clientData:                LONGINT;
  3700.         buffer:                    Ptr;                                    {   --> Pointer to a buufer where data will be returned  }
  3701.         bufferSize:                LONGINT;                                {   --> Length of the buffer, Length of actual data will be returned here  }
  3702.         totalEntries:            LONGINT;                                {  <--  Total Number of Catalogs found  }
  3703.         actualEntries:            LONGINT;                                {  <--  Total Number of Catalogs entries returned  }
  3704.     END;
  3705.  
  3706. {
  3707. DirGetDirectoryIconPB: With this call a client can find out about
  3708. the icons supported by the Catalog.
  3709. Both ADAP and Personal Catalog will not support this call for now.
  3710. A CSAM can support a call so that DE Extension can use this
  3711. call to find appropriate Icons.
  3712.  
  3713. Returns kOCEBufferTooSmall if icon is too small, but will update iconSize.
  3714. }
  3715.     DirGetDirectoryIconPBPtr = ^DirGetDirectoryIconPB;
  3716.     DirGetDirectoryIconPB = RECORD
  3717.         qLink:                    Ptr;
  3718.         reserved1:                LONGINT;
  3719.         reserved2:                LONGINT;
  3720.         ioCompletion:            DirIOCompletionUPP;
  3721.         ioResult:                OSErr;
  3722.         saveA5:                    LONGINT;
  3723.         reqCode:                INTEGER;
  3724.         reserved:                ARRAY [0..1] OF LONGINT;
  3725.         serverHint:                AddrBlock;
  3726.         dsRefNum:                INTEGER;
  3727.         callID:                    LONGINT;
  3728.         identity:                AuthIdentity;
  3729.         gReserved1:                LONGINT;
  3730.         gReserved2:                LONGINT;
  3731.         gReserved3:                LONGINT;
  3732.         clientData:                LONGINT;
  3733.         pRLI:                    PackedRLIPtr;                            {   --> packed RLI for the catalog  }
  3734.         iconType:                OSType;                                    {   --> Type of Icon requested  }
  3735.         iconBuffer:                Ptr;                                    {   --> Buffer to hold Icon Data  }
  3736.         bufferSize:                LONGINT;                                {   <-> size of buffer to hold icon data  }
  3737.     END;
  3738.  
  3739. {
  3740. DirGetOCESetupRefNum: This call will return 'dsRefnum' for the OCE Setup Personal Catalog
  3741. and oceSetupRecordCID for the oceSetup Record.
  3742. Clients interested in manipulating OCE Setup Personal Catalog directly should
  3743. make this call to get 'dsRefNum'.
  3744. 'dsRefNum' will be returned in the standard field in the DirParamHeader.
  3745. }
  3746.     DirGetOCESetupRefNumPBPtr = ^DirGetOCESetupRefNumPB;
  3747.     DirGetOCESetupRefNumPB = RECORD
  3748.         qLink:                    Ptr;
  3749.         reserved1:                LONGINT;
  3750.         reserved2:                LONGINT;
  3751.         ioCompletion:            DirIOCompletionUPP;
  3752.         ioResult:                OSErr;
  3753.         saveA5:                    LONGINT;
  3754.         reqCode:                INTEGER;
  3755.         reserved:                ARRAY [0..1] OF LONGINT;
  3756.         serverHint:                AddrBlock;
  3757.         dsRefNum:                INTEGER;
  3758.         callID:                    LONGINT;
  3759.         identity:                AuthIdentity;
  3760.         gReserved1:                LONGINT;
  3761.         gReserved2:                LONGINT;
  3762.         gReserved3:                LONGINT;
  3763.         clientData:                LONGINT;
  3764.         oceSetupRecordCID:        CreationID;                                {  --> creationID for the catalog record  }
  3765.     END;
  3766.  
  3767. { *************************************************************************** }
  3768. {  Catalog and Authentication control blocks and operation definitions  }
  3769.     AuthParamBlock = RECORD
  3770.         CASE INTEGER OF
  3771.         0: (
  3772.             qLink:                Ptr;
  3773.             reserved1:            LONGINT;
  3774.             reserved2:            LONGINT;
  3775.             ioCompletion:        AuthIOCompletionUPP;
  3776.             ioResult:            OSErr;
  3777.             saveA5:                LONGINT;
  3778.             reqCode:            INTEGER;
  3779.             reserved:            ARRAY [0..1] OF LONGINT;
  3780.             serverHint:            AddrBlock;
  3781.             dsRefNum:            INTEGER;
  3782.             callID:                LONGINT;
  3783.             identity:            AuthIdentity;
  3784.             gReserved1:            LONGINT;
  3785.             gReserved2:            LONGINT;
  3786.             gReserved3:            LONGINT;
  3787.             clientData:            LONGINT;
  3788.            );
  3789.         1: (
  3790.             bindIdentityPB:        AuthBindSpecificIdentityPB;
  3791.             );
  3792.         2: (
  3793.             unbindIdentityPB:    AuthUnbindSpecificIdentityPB;
  3794.             );
  3795.         3: (
  3796.             resolveCreationIDPB: AuthResolveCreationIDPB;
  3797.             );
  3798.         4: (
  3799.             getIdentityInfoPB:    AuthGetSpecificIdentityInfoPB;
  3800.             );
  3801.         5: (
  3802.             addKeyPB:            AuthAddKeyPB;
  3803.             );
  3804.         6: (
  3805.             changeKeyPB:        AuthChangeKeyPB;
  3806.             );
  3807.         7: (
  3808.             deleteKeyPB:        AuthDeleteKeyPB;
  3809.             );
  3810.         8: (
  3811.             passwordToKeyPB:    AuthPasswordToKeyPB;
  3812.             );
  3813.         9: (
  3814.             getCredentialsPB:    AuthGetCredentialsPB;
  3815.             );
  3816.         10: (
  3817.             decryptCredentialsPB: AuthDecryptCredentialsPB;
  3818.             );
  3819.         11: (
  3820.             makeChallengePB:    AuthMakeChallengePB;
  3821.             );
  3822.         12: (
  3823.             makeReplyPB:        AuthMakeReplyPB;
  3824.             );
  3825.         13: (
  3826.             verifyReplyPB:        AuthVerifyReplyPB;
  3827.             );
  3828.         14: (
  3829.             getUTCTimePB:        AuthGetUTCTimePB;
  3830.             );
  3831.         15: (
  3832.             makeProxyPB:        AuthMakeProxyPB;
  3833.             );
  3834.         16: (
  3835.             tradeProxyForCredentialsPB: AuthTradeProxyForCredentialsPB;
  3836.             );
  3837.         17: (
  3838.             getLocalIdentityPB:    AuthGetLocalIdentityPB;
  3839.             );
  3840.         18: (
  3841.             unLockLocalIdentityPB: AuthUnlockLocalIdentityPB;
  3842.             );
  3843.         19: (
  3844.             lockLocalIdentityPB: AuthLockLocalIdentityPB;
  3845.             );
  3846.         20: (
  3847.             localIdentityQInstallPB: AuthAddToLocalIdentityQueuePB;
  3848.             );
  3849.         21: (
  3850.             localIdentityQRemovePB: AuthRemoveFromLocalIdentityQueuePB;
  3851.             );
  3852.         22: (
  3853.             setupLocalIdentityPB: AuthSetupLocalIdentityPB;
  3854.             );
  3855.         23: (
  3856.             changeLocalIdentityPB: AuthChangeLocalIdentityPB;
  3857.             );
  3858.         24: (
  3859.             removeLocalIdentityPB: AuthRemoveLocalIdentityPB;
  3860.             );
  3861.         25: (
  3862.             setupDirectoryIdentityPB: OCESetupAddDirectoryInfoPB;
  3863.             );
  3864.         26: (
  3865.             changeDirectoryIdentityPB: OCESetupChangeDirectoryInfoPB;
  3866.             );
  3867.         27: (
  3868.             removeDirectoryIdentityPB: OCESetupRemoveDirectoryInfoPB;
  3869.             );
  3870.         28: (
  3871.             getDirectoryIdentityInfoPB: OCESetupGetDirectoryInfoPB;
  3872.             );
  3873.     END;
  3874.  
  3875.     DirParamBlock = RECORD
  3876.         CASE INTEGER OF
  3877.         0: (
  3878.             qLink:                Ptr;
  3879.             reserved1:            LONGINT;
  3880.             reserved2:            LONGINT;
  3881.             ioCompletion:        DirIOCompletionUPP;
  3882.             ioResult:            OSErr;
  3883.             saveA5:                LONGINT;
  3884.             reqCode:            INTEGER;
  3885.             reserved:            ARRAY [0..1] OF LONGINT;
  3886.             serverHint:            AddrBlock;
  3887.             dsRefNum:            INTEGER;
  3888.             callID:                LONGINT;
  3889.             identity:            AuthIdentity;
  3890.             gReserved1:            LONGINT;
  3891.             gReserved2:            LONGINT;
  3892.             gReserved3:            LONGINT;
  3893.             clientData:            LONGINT;
  3894.            );
  3895.         1: (
  3896.             addRecordPB:        DirAddRecordPB;
  3897.             );
  3898.         2: (
  3899.             deleteRecordPB:        DirDeleteRecordPB;
  3900.             );
  3901.         3: (
  3902.             enumerateGetPB:        DirEnumerateGetPB;
  3903.             );
  3904.         4: (
  3905.             enumerateParsePB:    DirEnumerateParsePB;
  3906.             );
  3907.         5: (
  3908.             findRecordGetPB:    DirFindRecordGetPB;
  3909.             );
  3910.         6: (
  3911.             findRecordParsePB:    DirFindRecordParsePB;
  3912.             );
  3913.         7: (
  3914.             lookupGetPB:        DirLookupGetPB;
  3915.             );
  3916.         8: (
  3917.             lookupParsePB:        DirLookupParsePB;
  3918.             );
  3919.         9: (
  3920.             addAttributeValuePB: DirAddAttributeValuePB;
  3921.             );
  3922.         10: (
  3923.             deleteAttributeTypePB: DirDeleteAttributeTypePB;
  3924.             );
  3925.         11: (
  3926.             deleteAttributeValuePB: DirDeleteAttributeValuePB;
  3927.             );
  3928.         12: (
  3929.             changeAttributeValuePB: DirChangeAttributeValuePB;
  3930.             );
  3931.         13: (
  3932.             verifyAttributeValuePB: DirVerifyAttributeValuePB;
  3933.             );
  3934.         14: (
  3935.             findValuePB:        DirFindValuePB;
  3936.             );
  3937.         15: (
  3938.             enumeratePseudonymGetPB: DirEnumeratePseudonymGetPB;
  3939.             );
  3940.         16: (
  3941.             enumeratePseudonymParsePB: DirEnumeratePseudonymParsePB;
  3942.             );
  3943.         17: (
  3944.             addPseudonymPB:        DirAddPseudonymPB;
  3945.             );
  3946.         18: (
  3947.             deletePseudonymPB:    DirDeletePseudonymPB;
  3948.             );
  3949.         19: (
  3950.             addAliasPB:            DirAddAliasPB;
  3951.             );
  3952.         20: (
  3953.             enumerateAttributeTypesGetPB: DirEnumerateAttributeTypesGetPB;
  3954.             );
  3955.         21: (
  3956.             enumerateAttributeTypesParsePB: DirEnumerateAttributeTypesParsePB;
  3957.             );
  3958.         22: (
  3959.             getNameAndTypePB:    DirGetNameAndTypePB;
  3960.             );
  3961.         23: (
  3962.             setNameAndTypePB:    DirSetNameAndTypePB;
  3963.             );
  3964.         24: (
  3965.             getRecordMetaInfoPB: DirGetRecordMetaInfoPB;
  3966.             );
  3967.         25: (
  3968.             getDNodeMetaInfoPB:    DirGetDNodeMetaInfoPB;
  3969.             );
  3970.         26: (
  3971.             getDirectoryInfoPB:    DirGetDirectoryInfoPB;
  3972.             );
  3973.         27: (
  3974.             getDNodeAccessControlGetPB: DirGetDNodeAccessControlGetPB;
  3975.             );
  3976.         28: (
  3977.             getDNodeAccessControlParsePB: DirGetDNodeAccessControlParsePB;
  3978.             );
  3979.         29: (
  3980.             getRecordAccessControlGetPB: DirGetRecordAccessControlGetPB;
  3981.             );
  3982.         30: (
  3983.             getRecordAccessControlParsePB: DirGetRecordAccessControlParsePB;
  3984.             );
  3985.         31: (
  3986.             getAttributeAccessControlGetPB: DirGetAttributeAccessControlGetPB;
  3987.             );
  3988.         32: (
  3989.             getAttributeAccessControlParsePB: DirGetAttributeAccessControlParsePB;
  3990.             );
  3991.         33: (
  3992.             enumerateDirectoriesGetPB: DirEnumerateDirectoriesGetPB;
  3993.             );
  3994.         34: (
  3995.             enumerateDirectoriesParsePB: DirEnumerateDirectoriesParsePB;
  3996.             );
  3997.         35: (
  3998.             addADAPDirectoryPB:    DirAddADAPDirectoryPB;
  3999.             );
  4000.         36: (
  4001.             removeDirectoryPB:    DirRemoveDirectoryPB;
  4002.             );
  4003.         37: (
  4004.             netSearchADAPDirectoriesGetPB: DirNetSearchADAPDirectoriesGetPB;
  4005.             );
  4006.         38: (
  4007.             netSearchADAPDirectoriesParsePB: DirNetSearchADAPDirectoriesParsePB;
  4008.             );
  4009.         39: (
  4010.             findADAPDirectoryByNetSearchPB: DirFindADAPDirectoryByNetSearchPB;
  4011.             );
  4012.         40: (
  4013.             mapDNodeNumberToPathNamePB: DirMapDNodeNumberToPathNamePB;
  4014.             );
  4015.         41: (
  4016.             mapPathNameToDNodeNumberPB: DirMapPathNameToDNodeNumberPB;
  4017.             );
  4018.         42: (
  4019.             getLocalNetworkSpecPB: DirGetLocalNetworkSpecPB;
  4020.             );
  4021.         43: (
  4022.             getDNodeInfoPB:        DirGetDNodeInfoPB;
  4023.             );
  4024.         44: (
  4025.             createPersonalDirectoryPB: DirCreatePersonalDirectoryPB;
  4026.             );
  4027.         45: (
  4028.             openPersonalDirectoryPB: DirOpenPersonalDirectoryPB;
  4029.             );
  4030.         46: (
  4031.             closePersonalDirectoryPB: DirClosePersonalDirectoryPB;
  4032.             );
  4033.         47: (
  4034.             makePersonalDirectoryRLIPB: DirMakePersonalDirectoryRLIPB;
  4035.             );
  4036.         48: (
  4037.             addDSAMPB:            DirAddDSAMPB;
  4038.             );
  4039.         49: (
  4040.             instantiateDSAMPB:    DirInstantiateDSAMPB;
  4041.             );
  4042.         50: (
  4043.             removeDSAMPB:        DirRemoveDSAMPB;
  4044.             );
  4045.         51: (
  4046.             addDSAMDirectoryPB:    DirAddDSAMDirectoryPB;
  4047.             );
  4048.         52: (
  4049.             getExtendedDirectoriesInfoPB: DirGetExtendedDirectoriesInfoPB;
  4050.             );
  4051.         53: (
  4052.             getDirectoryIconPB:    DirGetDirectoryIconPB;
  4053.             );
  4054.         54: (
  4055.             dirGetOCESetupRefNumPB: DirGetOCESetupRefNumPB;
  4056.             );
  4057.         55: (
  4058.             abortPB:            DirAbortPB;
  4059.             );
  4060.     END;
  4061.  
  4062.  
  4063. CONST
  4064.     uppAuthIOCompletionProcInfo = $00009802;
  4065.     uppNotificationProcInfo = $00003FD0;
  4066.     uppDirIOCompletionProcInfo = $00009802;
  4067.     uppForEachDirEnumSpecProcInfo = $000003D0;
  4068.     uppForEachRecordProcInfo = $00000FD0;
  4069.     uppForEachLookupRecordIDProcInfo = $000003D0;
  4070.     uppForEachAttrTypeLookupProcInfo = $00000FD0;
  4071.     uppForEachAttrValueProcInfo = $000003D0;
  4072.     uppForEachAttrTypeProcInfo = $000003D0;
  4073.     uppForEachRecordIDProcInfo = $000003D0;
  4074.     uppForEachDirectoryProcInfo = $00003FD0;
  4075.     uppForEachADAPDirectoryProcInfo = $0000FFD0;
  4076.     uppForEachDNodeAccessControlProcInfo = $0000FFD0;
  4077.     uppForEachRecordAccessControlProcInfo = $0000FFD0;
  4078.     uppForEachAttributeAccessControlProcInfo = $0000FFD0;
  4079.     uppDSAMDirProcInfo = $000007E0;
  4080.     uppDSAMDirParseProcInfo = $000007E0;
  4081.     uppDSAMAuthProcInfo = $000007E0;
  4082.  
  4083. PROCEDURE CallAuthIOCompletionProc(paramBlock: AuthParamBlockPtr; userRoutine: AuthIOCompletionUPP);
  4084.     {$IFC NOT GENERATINGCFM}
  4085.     {To be implemented:  Glue to move parameters into registers.}
  4086.     {$ENDC}
  4087.  
  4088. FUNCTION CallNotificationProc(clientData: LONGINT; callValue: AuthLocalIdentityOp; actionValue: AuthLocalIdentityLockAction; identity: LocalIdentity; userRoutine: NotificationUPP): BOOLEAN;
  4089.     {$IFC NOT GENERATINGCFM}
  4090.     INLINE $205F, $4E90;
  4091.     {$ENDC}
  4092.  
  4093. PROCEDURE CallDirIOCompletionProc(paramBlock: DirParamBlockPtr; userRoutine: DirIOCompletionUPP);
  4094.     {$IFC NOT GENERATINGCFM}
  4095.     {To be implemented:  Glue to move parameters into registers.}
  4096.     {$ENDC}
  4097.  
  4098. FUNCTION CallForEachDirEnumSpecProc(clientData: LONGINT; {CONST}VAR enumSpec: DirEnumSpec; userRoutine: ForEachDirEnumSpecUPP): BOOLEAN;
  4099.     {$IFC NOT GENERATINGCFM}
  4100.     INLINE $205F, $4E90;
  4101.     {$ENDC}
  4102.  
  4103. FUNCTION CallForEachRecordProc(clientData: LONGINT; {CONST}VAR enumSpec: DirEnumSpec; pRLI: PackedRLIPtr; userRoutine: ForEachRecordUPP): BOOLEAN;
  4104.     {$IFC NOT GENERATINGCFM}
  4105.     INLINE $205F, $4E90;
  4106.     {$ENDC}
  4107.  
  4108. FUNCTION CallForEachLookupRecordIDProc(clientData: LONGINT; {CONST}VAR recordID: RecordID; userRoutine: ForEachLookupRecordIDUPP): BOOLEAN;
  4109.     {$IFC NOT GENERATINGCFM}
  4110.     INLINE $205F, $4E90;
  4111.     {$ENDC}
  4112.  
  4113. FUNCTION CallForEachAttrTypeLookupProc(clientData: LONGINT; {CONST}VAR attrType: AttributeType; myAttrAccMask: AccessMask; userRoutine: ForEachAttrTypeLookupUPP): BOOLEAN;
  4114.     {$IFC NOT GENERATINGCFM}
  4115.     INLINE $205F, $4E90;
  4116.     {$ENDC}
  4117.  
  4118. FUNCTION CallForEachAttrValueProc(clientData: LONGINT; {CONST}VAR attribute: Attribute; userRoutine: ForEachAttrValueUPP): BOOLEAN;
  4119.     {$IFC NOT GENERATINGCFM}
  4120.     INLINE $205F, $4E90;
  4121.     {$ENDC}
  4122.  
  4123. FUNCTION CallForEachAttrTypeProc(clientData: LONGINT; {CONST}VAR attrType: AttributeType; userRoutine: ForEachAttrTypeUPP): BOOLEAN;
  4124.     {$IFC NOT GENERATINGCFM}
  4125.     INLINE $205F, $4E90;
  4126.     {$ENDC}
  4127.  
  4128. FUNCTION CallForEachRecordIDProc(clientData: LONGINT; {CONST}VAR recordID: RecordID; userRoutine: ForEachRecordIDUPP): BOOLEAN;
  4129.     {$IFC NOT GENERATINGCFM}
  4130.     INLINE $205F, $4E90;
  4131.     {$ENDC}
  4132.  
  4133. FUNCTION CallForEachDirectoryProc(clientData: LONGINT; {CONST}VAR dirName: DirectoryName; {CONST}VAR discriminator: DirDiscriminator; features: DirGestalt; userRoutine: ForEachDirectoryUPP): BOOLEAN;
  4134.     {$IFC NOT GENERATINGCFM}
  4135.     INLINE $205F, $4E90;
  4136.     {$ENDC}
  4137.  
  4138. FUNCTION CallForEachADAPDirectoryProc(clientData: LONGINT; {CONST}VAR dirName: DirectoryName; {CONST}VAR discriminator: DirDiscriminator; features: DirGestalt; serverHint: AddrBlock; userRoutine: ForEachADAPDirectoryUPP): BOOLEAN;
  4139.     {$IFC NOT GENERATINGCFM}
  4140.     INLINE $205F, $4E90;
  4141.     {$ENDC}
  4142.  
  4143. FUNCTION CallForEachDNodeAccessControlProc(clientData: LONGINT; {CONST}VAR dsObj: DSSpec; activeDnodeAccMask: AccessMask; defaultRecordAccMask: AccessMask; defaultAttributeAccMask: AccessMask; userRoutine: ForEachDNodeAccessControlUPP): BOOLEAN;
  4144.     {$IFC NOT GENERATINGCFM}
  4145.     INLINE $205F, $4E90;
  4146.     {$ENDC}
  4147.  
  4148. FUNCTION CallForEachRecordAccessControlProc(clientData: LONGINT; {CONST}VAR dsObj: DSSpec; activeDnodeAccMask: AccessMask; activeRecordAccMask: AccessMask; defaultAttributeAccMask: AccessMask; userRoutine: ForEachRecordAccessControlUPP): BOOLEAN;
  4149.     {$IFC NOT GENERATINGCFM}
  4150.     INLINE $205F, $4E90;
  4151.     {$ENDC}
  4152.  
  4153. FUNCTION CallForEachAttributeAccessControlProc(clientData: LONGINT; {CONST}VAR dsObj: DSSpec; activeDnodeAccMask: AccessMask; activeRecordAccMask: AccessMask; activeAttributeAccMask: AccessMask; userRoutine: ForEachAttributeAccessControlUPP): BOOLEAN;
  4154.     {$IFC NOT GENERATINGCFM}
  4155.     INLINE $205F, $4E90;
  4156.     {$ENDC}
  4157.  
  4158. FUNCTION CallDSAMDirProc(dsamData: UNIV Ptr; paramBlock: DirParamBlockPtr; async: BOOLEAN; userRoutine: DSAMDirUPP): OSErr;
  4159.     {$IFC NOT GENERATINGCFM}
  4160.     INLINE $205F, $4E90;
  4161.     {$ENDC}
  4162.  
  4163. FUNCTION CallDSAMDirParseProc(dsamData: UNIV Ptr; paramBlock: DirParamBlockPtr; async: BOOLEAN; userRoutine: DSAMDirParseUPP): OSErr;
  4164.     {$IFC NOT GENERATINGCFM}
  4165.     INLINE $205F, $4E90;
  4166.     {$ENDC}
  4167.  
  4168. FUNCTION CallDSAMAuthProc(dsamData: UNIV Ptr; pb: AuthParamBlockPtr; async: BOOLEAN; userRoutine: DSAMAuthUPP): OSErr;
  4169.     {$IFC NOT GENERATINGCFM}
  4170.     INLINE $205F, $4E90;
  4171.     {$ENDC}
  4172.  
  4173. FUNCTION NewAuthIOCompletionProc(userRoutine: AuthIOCompletionProcPtr): AuthIOCompletionUPP;
  4174.     {$IFC NOT GENERATINGCFM }
  4175.     INLINE $2E9F;
  4176.     {$ENDC}
  4177.  
  4178. FUNCTION NewNotificationProc(userRoutine: NotificationProcPtr): NotificationUPP;
  4179.     {$IFC NOT GENERATINGCFM }
  4180.     INLINE $2E9F;
  4181.     {$ENDC}
  4182.  
  4183. FUNCTION NewDirIOCompletionProc(userRoutine: DirIOCompletionProcPtr): DirIOCompletionUPP;
  4184.     {$IFC NOT GENERATINGCFM }
  4185.     INLINE $2E9F;
  4186.     {$ENDC}
  4187.  
  4188. FUNCTION NewForEachDirEnumSpecProc(userRoutine: ForEachDirEnumSpecProcPtr): ForEachDirEnumSpecUPP;
  4189.     {$IFC NOT GENERATINGCFM }
  4190.     INLINE $2E9F;
  4191.     {$ENDC}
  4192.  
  4193. FUNCTION NewForEachRecordProc(userRoutine: ForEachRecordProcPtr): ForEachRecordUPP;
  4194.     {$IFC NOT GENERATINGCFM }
  4195.     INLINE $2E9F;
  4196.     {$ENDC}
  4197.  
  4198. FUNCTION NewForEachLookupRecordIDProc(userRoutine: ForEachLookupRecordIDProcPtr): ForEachLookupRecordIDUPP;
  4199.     {$IFC NOT GENERATINGCFM }
  4200.     INLINE $2E9F;
  4201.     {$ENDC}
  4202.  
  4203. FUNCTION NewForEachAttrTypeLookupProc(userRoutine: ForEachAttrTypeLookupProcPtr): ForEachAttrTypeLookupUPP;
  4204.     {$IFC NOT GENERATINGCFM }
  4205.     INLINE $2E9F;
  4206.     {$ENDC}
  4207.  
  4208. FUNCTION NewForEachAttrValueProc(userRoutine: ForEachAttrValueProcPtr): ForEachAttrValueUPP;
  4209.     {$IFC NOT GENERATINGCFM }
  4210.     INLINE $2E9F;
  4211.     {$ENDC}
  4212.  
  4213. FUNCTION NewForEachAttrTypeProc(userRoutine: ForEachAttrTypeProcPtr): ForEachAttrTypeUPP;
  4214.     {$IFC NOT GENERATINGCFM }
  4215.     INLINE $2E9F;
  4216.     {$ENDC}
  4217.  
  4218. FUNCTION NewForEachRecordIDProc(userRoutine: ForEachRecordIDProcPtr): ForEachRecordIDUPP;
  4219.     {$IFC NOT GENERATINGCFM }
  4220.     INLINE $2E9F;
  4221.     {$ENDC}
  4222.  
  4223. FUNCTION NewForEachDirectoryProc(userRoutine: ForEachDirectoryProcPtr): ForEachDirectoryUPP;
  4224.     {$IFC NOT GENERATINGCFM }
  4225.     INLINE $2E9F;
  4226.     {$ENDC}
  4227.  
  4228. FUNCTION NewForEachADAPDirectoryProc(userRoutine: ForEachADAPDirectoryProcPtr): ForEachADAPDirectoryUPP;
  4229.     {$IFC NOT GENERATINGCFM }
  4230.     INLINE $2E9F;
  4231.     {$ENDC}
  4232.  
  4233. FUNCTION NewForEachDNodeAccessControlProc(userRoutine: ForEachDNodeAccessControlProcPtr): ForEachDNodeAccessControlUPP;
  4234.     {$IFC NOT GENERATINGCFM }
  4235.     INLINE $2E9F;
  4236.     {$ENDC}
  4237.  
  4238. FUNCTION NewForEachRecordAccessControlProc(userRoutine: ForEachRecordAccessControlProcPtr): ForEachRecordAccessControlUPP;
  4239.     {$IFC NOT GENERATINGCFM }
  4240.     INLINE $2E9F;
  4241.     {$ENDC}
  4242.  
  4243. FUNCTION NewForEachAttributeAccessControlProc(userRoutine: ForEachAttributeAccessControlProcPtr): ForEachAttributeAccessControlUPP;
  4244.     {$IFC NOT GENERATINGCFM }
  4245.     INLINE $2E9F;
  4246.     {$ENDC}
  4247.  
  4248. FUNCTION NewDSAMDirProc(userRoutine: DSAMDirProcPtr): DSAMDirUPP;
  4249.     {$IFC NOT GENERATINGCFM }
  4250.     INLINE $2E9F;
  4251.     {$ENDC}
  4252.  
  4253. FUNCTION NewDSAMDirParseProc(userRoutine: DSAMDirParseProcPtr): DSAMDirParseUPP;
  4254.     {$IFC NOT GENERATINGCFM }
  4255.     INLINE $2E9F;
  4256.     {$ENDC}
  4257.  
  4258. FUNCTION NewDSAMAuthProc(userRoutine: DSAMAuthProcPtr): DSAMAuthUPP;
  4259.     {$IFC NOT GENERATINGCFM }
  4260.     INLINE $2E9F;
  4261.     {$ENDC}
  4262. FUNCTION AuthBindSpecificIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4263.     {$IFC NOT GENERATINGCFM}
  4264.     INLINE $3F3C, $0200, $AA5E;
  4265.     {$ENDC}
  4266. FUNCTION AuthUnbindSpecificIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4267.     {$IFC NOT GENERATINGCFM}
  4268.     INLINE $3F3C, $0201, $AA5E;
  4269.     {$ENDC}
  4270. FUNCTION AuthResolveCreationID(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4271.     {$IFC NOT GENERATINGCFM}
  4272.     INLINE $3F3C, $0202, $AA5E;
  4273.     {$ENDC}
  4274. FUNCTION AuthGetSpecificIdentityInfo(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4275.     {$IFC NOT GENERATINGCFM}
  4276.     INLINE $3F3C, $0203, $AA5E;
  4277.     {$ENDC}
  4278. FUNCTION AuthAddKey(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4279.     {$IFC NOT GENERATINGCFM}
  4280.     INLINE $3F3C, $0207, $AA5E;
  4281.     {$ENDC}
  4282. FUNCTION AuthChangeKey(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4283.     {$IFC NOT GENERATINGCFM}
  4284.     INLINE $3F3C, $0208, $AA5E;
  4285.     {$ENDC}
  4286. FUNCTION AuthDeleteKey(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4287.     {$IFC NOT GENERATINGCFM}
  4288.     INLINE $3F3C, $0209, $AA5E;
  4289.     {$ENDC}
  4290. FUNCTION AuthPasswordToKey(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4291.     {$IFC NOT GENERATINGCFM}
  4292.     INLINE $3F3C, $020A, $AA5E;
  4293.     {$ENDC}
  4294. FUNCTION AuthGetCredentials(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4295.     {$IFC NOT GENERATINGCFM}
  4296.     INLINE $3F3C, $020B, $AA5E;
  4297.     {$ENDC}
  4298. FUNCTION AuthDecryptCredentials(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4299.     {$IFC NOT GENERATINGCFM}
  4300.     INLINE $3F3C, $020C, $AA5E;
  4301.     {$ENDC}
  4302. FUNCTION AuthMakeChallenge(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4303.     {$IFC NOT GENERATINGCFM}
  4304.     INLINE $3F3C, $020F, $AA5E;
  4305.     {$ENDC}
  4306. FUNCTION AuthMakeReply(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4307.     {$IFC NOT GENERATINGCFM}
  4308.     INLINE $3F3C, $0210, $AA5E;
  4309.     {$ENDC}
  4310. FUNCTION AuthVerifyReply(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4311.     {$IFC NOT GENERATINGCFM}
  4312.     INLINE $3F3C, $0211, $AA5E;
  4313.     {$ENDC}
  4314. FUNCTION AuthGetUTCTime(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4315.     {$IFC NOT GENERATINGCFM}
  4316.     INLINE $3F3C, $021A, $AA5E;
  4317.     {$ENDC}
  4318. FUNCTION AuthMakeProxy(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4319.     {$IFC NOT GENERATINGCFM}
  4320.     INLINE $3F3C, $0212, $AA5E;
  4321.     {$ENDC}
  4322. FUNCTION AuthTradeProxyForCredentials(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4323.     {$IFC NOT GENERATINGCFM}
  4324.     INLINE $3F3C, $0213, $AA5E;
  4325.     {$ENDC}
  4326. {  Local Identity API  }
  4327. FUNCTION AuthGetLocalIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4328.     {$IFC NOT GENERATINGCFM}
  4329.     INLINE $3F3C, $0204, $AA5E;
  4330.     {$ENDC}
  4331. FUNCTION AuthUnlockLocalIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4332.     {$IFC NOT GENERATINGCFM}
  4333.     INLINE $3F3C, $0214, $AA5E;
  4334.     {$ENDC}
  4335. FUNCTION AuthLockLocalIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4336.     {$IFC NOT GENERATINGCFM}
  4337.     INLINE $3F3C, $0215, $AA5E;
  4338.     {$ENDC}
  4339. FUNCTION AuthAddToLocalIdentityQueue(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4340.     {$IFC NOT GENERATINGCFM}
  4341.     INLINE $3F3C, $0205, $AA5E;
  4342.     {$ENDC}
  4343. FUNCTION AuthRemoveFromLocalIdentityQueue(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4344.     {$IFC NOT GENERATINGCFM}
  4345.     INLINE $3F3C, $0206, $AA5E;
  4346.     {$ENDC}
  4347. FUNCTION AuthSetupLocalIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4348.     {$IFC NOT GENERATINGCFM}
  4349.     INLINE $3F3C, $0216, $AA5E;
  4350.     {$ENDC}
  4351. FUNCTION AuthChangeLocalIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4352.     {$IFC NOT GENERATINGCFM}
  4353.     INLINE $3F3C, $0217, $AA5E;
  4354.     {$ENDC}
  4355. FUNCTION AuthRemoveLocalIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4356.     {$IFC NOT GENERATINGCFM}
  4357.     INLINE $3F3C, $0218, $AA5E;
  4358.     {$ENDC}
  4359. FUNCTION DirAddRecord(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4360.     {$IFC NOT GENERATINGCFM}
  4361.     INLINE $3F3C, $0109, $AA5E;
  4362.     {$ENDC}
  4363. FUNCTION DirDeleteRecord(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4364.     {$IFC NOT GENERATINGCFM}
  4365.     INLINE $3F3C, $010A, $AA5E;
  4366.     {$ENDC}
  4367. FUNCTION DirEnumerateGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4368.     {$IFC NOT GENERATINGCFM}
  4369.     INLINE $3F3C, $0111, $AA5E;
  4370.     {$ENDC}
  4371. FUNCTION DirEnumerateParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4372.     {$IFC NOT GENERATINGCFM}
  4373.     INLINE $3F3C, $0101, $AA5E;
  4374.     {$ENDC}
  4375. FUNCTION DirFindRecordGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4376.     {$IFC NOT GENERATINGCFM}
  4377.     INLINE $3F3C, $0140, $AA5E;
  4378.     {$ENDC}
  4379. FUNCTION DirFindRecordParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4380.     {$IFC NOT GENERATINGCFM}
  4381.     INLINE $3F3C, $0141, $AA5E;
  4382.     {$ENDC}
  4383. FUNCTION DirLookupGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4384.     {$IFC NOT GENERATINGCFM}
  4385.     INLINE $3F3C, $0117, $AA5E;
  4386.     {$ENDC}
  4387. FUNCTION DirLookupParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4388.     {$IFC NOT GENERATINGCFM}
  4389.     INLINE $3F3C, $0102, $AA5E;
  4390.     {$ENDC}
  4391. FUNCTION DirAddAttributeValue(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4392.     {$IFC NOT GENERATINGCFM}
  4393.     INLINE $3F3C, $010B, $AA5E;
  4394.     {$ENDC}
  4395. FUNCTION DirDeleteAttributeValue(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4396.     {$IFC NOT GENERATINGCFM}
  4397.     INLINE $3F3C, $010C, $AA5E;
  4398.     {$ENDC}
  4399. FUNCTION DirDeleteAttributeType(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4400.     {$IFC NOT GENERATINGCFM}
  4401.     INLINE $3F3C, $0130, $AA5E;
  4402.     {$ENDC}
  4403. FUNCTION DirChangeAttributeValue(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4404.     {$IFC NOT GENERATINGCFM}
  4405.     INLINE $3F3C, $010D, $AA5E;
  4406.     {$ENDC}
  4407. FUNCTION DirVerifyAttributeValue(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4408.     {$IFC NOT GENERATINGCFM}
  4409.     INLINE $3F3C, $010E, $AA5E;
  4410.     {$ENDC}
  4411. FUNCTION DirFindValue(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4412.     {$IFC NOT GENERATINGCFM}
  4413.     INLINE $3F3C, $0126, $AA5E;
  4414.     {$ENDC}
  4415. FUNCTION DirEnumerateAttributeTypesGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4416.     {$IFC NOT GENERATINGCFM}
  4417.     INLINE $3F3C, $0112, $AA5E;
  4418.     {$ENDC}
  4419. FUNCTION DirEnumerateAttributeTypesParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4420.     {$IFC NOT GENERATINGCFM}
  4421.     INLINE $3F3C, $0103, $AA5E;
  4422.     {$ENDC}
  4423. FUNCTION DirAddPseudonym(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4424.     {$IFC NOT GENERATINGCFM}
  4425.     INLINE $3F3C, $010F, $AA5E;
  4426.     {$ENDC}
  4427. FUNCTION DirDeletePseudonym(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4428.     {$IFC NOT GENERATINGCFM}
  4429.     INLINE $3F3C, $0110, $AA5E;
  4430.     {$ENDC}
  4431. FUNCTION DirAddAlias(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4432.     {$IFC NOT GENERATINGCFM}
  4433.     INLINE $3F3C, $011C, $AA5E;
  4434.     {$ENDC}
  4435. FUNCTION DirEnumeratePseudonymGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4436.     {$IFC NOT GENERATINGCFM}
  4437.     INLINE $3F3C, $0113, $AA5E;
  4438.     {$ENDC}
  4439. FUNCTION DirEnumeratePseudonymParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4440.     {$IFC NOT GENERATINGCFM}
  4441.     INLINE $3F3C, $0104, $AA5E;
  4442.     {$ENDC}
  4443. FUNCTION DirGetNameAndType(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4444.     {$IFC NOT GENERATINGCFM}
  4445.     INLINE $3F3C, $0114, $AA5E;
  4446.     {$ENDC}
  4447. FUNCTION DirSetNameAndType(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4448.     {$IFC NOT GENERATINGCFM}
  4449.     INLINE $3F3C, $0115, $AA5E;
  4450.     {$ENDC}
  4451. FUNCTION DirGetRecordMetaInfo(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4452.     {$IFC NOT GENERATINGCFM}
  4453.     INLINE $3F3C, $0116, $AA5E;
  4454.     {$ENDC}
  4455. FUNCTION DirGetDNodeMetaInfo(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4456.     {$IFC NOT GENERATINGCFM}
  4457.     INLINE $3F3C, $0118, $AA5E;
  4458.     {$ENDC}
  4459. FUNCTION DirGetDirectoryInfo(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4460.     {$IFC NOT GENERATINGCFM}
  4461.     INLINE $3F3C, $0119, $AA5E;
  4462.     {$ENDC}
  4463. FUNCTION DirGetDNodeAccessControlGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4464.     {$IFC NOT GENERATINGCFM}
  4465.     INLINE $3F3C, $012A, $AA5E;
  4466.     {$ENDC}
  4467. FUNCTION DirGetDNodeAccessControlParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4468.     {$IFC NOT GENERATINGCFM}
  4469.     INLINE $3F3C, $012F, $AA5E;
  4470.     {$ENDC}
  4471. FUNCTION DirGetRecordAccessControlGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4472.     {$IFC NOT GENERATINGCFM}
  4473.     INLINE $3F3C, $012C, $AA5E;
  4474.     {$ENDC}
  4475. FUNCTION DirGetRecordAccessControlParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4476.     {$IFC NOT GENERATINGCFM}
  4477.     INLINE $3F3C, $0134, $AA5E;
  4478.     {$ENDC}
  4479. FUNCTION DirGetAttributeAccessControlGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4480.     {$IFC NOT GENERATINGCFM}
  4481.     INLINE $3F3C, $012E, $AA5E;
  4482.     {$ENDC}
  4483. FUNCTION DirGetAttributeAccessControlParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4484.     {$IFC NOT GENERATINGCFM}
  4485.     INLINE $3F3C, $0138, $AA5E;
  4486.     {$ENDC}
  4487. FUNCTION DirEnumerateDirectoriesGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4488.     {$IFC NOT GENERATINGCFM}
  4489.     INLINE $3F3C, $011A, $AA5E;
  4490.     {$ENDC}
  4491. FUNCTION DirEnumerateDirectoriesParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4492.     {$IFC NOT GENERATINGCFM}
  4493.     INLINE $3F3C, $0106, $AA5E;
  4494.     {$ENDC}
  4495. FUNCTION DirMapPathNameToDNodeNumber(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4496.     {$IFC NOT GENERATINGCFM}
  4497.     INLINE $3F3C, $0122, $AA5E;
  4498.     {$ENDC}
  4499. FUNCTION DirMapDNodeNumberToPathName(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4500.     {$IFC NOT GENERATINGCFM}
  4501.     INLINE $3F3C, $0123, $AA5E;
  4502.     {$ENDC}
  4503. FUNCTION DirGetLocalNetworkSpec(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4504.     {$IFC NOT GENERATINGCFM}
  4505.     INLINE $3F3C, $0124, $AA5E;
  4506.     {$ENDC}
  4507. FUNCTION DirGetDNodeInfo(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4508.     {$IFC NOT GENERATINGCFM}
  4509.     INLINE $3F3C, $0125, $AA5E;
  4510.     {$ENDC}
  4511. {   Trap Dispatchers for Personal Catalog and CSAM Extensions  }
  4512. FUNCTION DirCreatePersonalDirectory(paramBlock: DirParamBlockPtr): OSErr;
  4513.     {$IFC NOT GENERATINGCFM}
  4514.     INLINE $7000, $1F00, $3F3C, $011F, $AA5E;
  4515.     {$ENDC}
  4516. FUNCTION DirOpenPersonalDirectory(paramBlock: DirParamBlockPtr): OSErr;
  4517.     {$IFC NOT GENERATINGCFM}
  4518.     INLINE $7000, $1F00, $3F3C, $011E, $AA5E;
  4519.     {$ENDC}
  4520. FUNCTION DirClosePersonalDirectory(paramBlock: DirParamBlockPtr): OSErr;
  4521.     {$IFC NOT GENERATINGCFM}
  4522.     INLINE $7000, $1F00, $3F3C, $0131, $AA5E;
  4523.     {$ENDC}
  4524. FUNCTION DirMakePersonalDirectoryRLI(paramBlock: DirParamBlockPtr): OSErr;
  4525.     {$IFC NOT GENERATINGCFM}
  4526.     INLINE $7000, $1F00, $3F3C, $0132, $AA5E;
  4527.     {$ENDC}
  4528. FUNCTION DirAddDSAM(paramBlock: DirParamBlockPtr): OSErr;
  4529.     {$IFC NOT GENERATINGCFM}
  4530.     INLINE $7000, $1F00, $3F3C, $011D, $AA5E;
  4531.     {$ENDC}
  4532. FUNCTION DirInstantiateDSAM(paramBlock: DirParamBlockPtr): OSErr;
  4533.     {$IFC NOT GENERATINGCFM}
  4534.     INLINE $7000, $1F00, $3F3C, $0127, $AA5E;
  4535.     {$ENDC}
  4536. FUNCTION DirRemoveDSAM(paramBlock: DirParamBlockPtr): OSErr;
  4537.     {$IFC NOT GENERATINGCFM}
  4538.     INLINE $7000, $1F00, $3F3C, $0120, $AA5E;
  4539.     {$ENDC}
  4540. FUNCTION DirAddDSAMDirectory(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4541.     {$IFC NOT GENERATINGCFM}
  4542.     INLINE $3F3C, $0133, $AA5E;
  4543.     {$ENDC}
  4544. FUNCTION DirGetExtendedDirectoriesInfo(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4545.     {$IFC NOT GENERATINGCFM}
  4546.     INLINE $3F3C, $0136, $AA5E;
  4547.     {$ENDC}
  4548. FUNCTION DirGetDirectoryIcon(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4549.     {$IFC NOT GENERATINGCFM}
  4550.     INLINE $3F3C, $0121, $AA5E;
  4551.     {$ENDC}
  4552. FUNCTION DirAddADAPDirectory(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4553.     {$IFC NOT GENERATINGCFM}
  4554.     INLINE $3F3C, $0137, $AA5E;
  4555.     {$ENDC}
  4556. FUNCTION DirRemoveDirectory(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4557.     {$IFC NOT GENERATINGCFM}
  4558.     INLINE $3F3C, $0135, $AA5E;
  4559.     {$ENDC}
  4560. FUNCTION DirNetSearchADAPDirectoriesGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4561.     {$IFC NOT GENERATINGCFM}
  4562.     INLINE $3F3C, $0108, $AA5E;
  4563.     {$ENDC}
  4564. FUNCTION DirNetSearchADAPDirectoriesParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4565.     {$IFC NOT GENERATINGCFM}
  4566.     INLINE $3F3C, $0105, $AA5E;
  4567.     {$ENDC}
  4568. FUNCTION DirFindADAPDirectoryByNetSearch(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4569.     {$IFC NOT GENERATINGCFM}
  4570.     INLINE $3F3C, $0107, $AA5E;
  4571.     {$ENDC}
  4572. FUNCTION DirGetOCESetupRefNum(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4573.     {$IFC NOT GENERATINGCFM}
  4574.     INLINE $3F3C, $0128, $AA5E;
  4575.     {$ENDC}
  4576. FUNCTION DirAbort(paramBlock: DirParamBlockPtr): OSErr;
  4577.     {$IFC NOT GENERATINGCFM}
  4578.     INLINE $7000, $1F00, $3F3C, $011B, $AA5E;
  4579.     {$ENDC}
  4580. FUNCTION OCESetupAddDirectoryInfo(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4581.     {$IFC NOT GENERATINGCFM}
  4582.     INLINE $3F3C, $0219, $AA5E;
  4583.     {$ENDC}
  4584. FUNCTION OCESetupChangeDirectoryInfo(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4585.     {$IFC NOT GENERATINGCFM}
  4586.     INLINE $3F3C, $021B, $AA5E;
  4587.     {$ENDC}
  4588. FUNCTION OCESetupRemoveDirectoryInfo(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4589.     {$IFC NOT GENERATINGCFM}
  4590.     INLINE $3F3C, $020D, $AA5E;
  4591.     {$ENDC}
  4592. FUNCTION OCESetupGetDirectoryInfo(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4593.     {$IFC NOT GENERATINGCFM}
  4594.     INLINE $3F3C, $020E, $AA5E;
  4595.     {$ENDC}
  4596. {$ENDC}
  4597. {$ALIGN RESET}
  4598. {$POP}
  4599.  
  4600. {$SETC UsingIncludes := OCEAuthDirIncludes}
  4601.  
  4602. {$ENDC} {__OCEAUTHDIR__}
  4603.  
  4604. {$IFC NOT UsingIncludes}
  4605.  END.
  4606. {$ENDC}
  4607.